0 votes
asked in General Help by (120 points)

How to run lose balance from a script?

How to play animation when falling in its pure form?

Reference: https://youtu.be/fW_H-jf6M_g?t=17

1 Answer

0 votes
answered by (19.5k points)

Hey, if you were using BehaviourPuppet, then this:

behaviourPuppet.SetState(BehaviourPuppet.State.Unpinned);

That will make the puppet lose balance. You might want to also set behaviourPuppet.canGetUp to false.

Then you can just call for any animation in the Animator like you normally would and the puppet will follow physically via the muscles.

commented by (120 points)
Thanks for your reply!

I have rotation around the axis in the animation and it doesn’t work, the animation of the bones works. Can I do something about this?
commented by (19.5k points)
No, when the puppet is unpinned, it will be animated only physically via it's muscles and there is no muscle magically constraining the puppet to some world space rotation.

You could add a ConfigurableJoint between the hips muscle and the hip bone of the model, set X/Y/Z Motion to Free and Angular X/Y/Z Motion to Locked.

Best,

Pärtel

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.

...