0 votes
asked in General Help by (310 points)

Hi Pärtel ,

I have a situation where I want my character to play the normal puppet behavior (knocked down, get up) only if the character has a foot (already have code to detach foot).  If the character doent have a foot, I want the puppet behavior fall and then reply the getup to an idle sitting animation (which I have).  I am struggling to figure out how to do this through puppet behavior.



1 Answer

0 votes
answered by (24.4k points)

There is an example about this in the Disconnecting Muscles demo, notice how the skeleton changes animation to jumping on one leg when you shoot one off,  the code for that can be found in Skeleton.cs. It's basically just changing Animator parameters based on which body parts are missing.

You can call for the puppet to fall down by behaviourPuppet.SetState(BehaviourPuppet.State.Unpinned);



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.