• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CubePhysics · Nov 03, 2012 at 03:45 PM · physicsragdoll

The Drunk Walk

I have a model in my game. Its basic but its part of what the game is about. I need it to do A drunk like walk. But im not talking about animation im talking about it walking around but like a retard and falls over every now and then. Could someone help me to develop a Code to do this.

The model is a ragdoll created by several character joints. Will that help when making the drunk-like-retarded walk like we could just stand the legs up but give it a weak balance. Here is a picture to help you. alt text

block head.png (118.4 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Kiloblargh · Nov 03, 2012 at 04:01 PM

There's no way getting around the fact that you're going to have to do some keyframe animation in an external program to get the effect you want. Even in the new version of Unity, which has a well-developed system for visually assembling and controlling the animations, you still have to import the raw material animation clips from Blender or Maya or what-have-you.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CubePhysics · Nov 03, 2012 at 05:39 PM 0
Share

I made the model on Unity. So what do I have to do, Add animation ins$$anonymous$$d because I could do a normal walk then ins$$anonymous$$d. Just guide through what I have to Do

avatar image Kiloblargh · Nov 04, 2012 at 02:44 PM 0
Share

Animate a normal walk cycle, then every (Random.Range(1.0,5.0)) seconds, stop the animation, turn on ragdoll physics for (Random.Range(0.5,2.0)) seconds, give one of the arms or legs a force in some random direction, then turn off physics, pick a random point in the walk cycle and blend back to it.

avatar image CubePhysics · Nov 04, 2012 at 02:52 PM 0
Share

thanks but do you know what program I could make the walk cycle on because I sort of made the model on Unity with Character Joints

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Physics City 1 Answer

How Do I Could I Make Ragdoll Out OF This Model!? 1 Answer

How can I make character become a ragdoll with isKinematic? 1 Answer

Help with DragRigidbody.js ? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges