Skip to main content

Working with Physics

Attached Physics Bodies

Physics bodies get unparented by Unity.Physics to work properly. Rukhanka will correctly animate an unparented bone entity.

Important

It is not immediately obvious, that a rigid body should be constructed in bone entity and not as child object of bone entity. In the latter case child entity will be unparented and lose connection with the animated bone. Please refer to the Simple Physics sample scene for setup example.

Ragdoll

Rig bone without animation will be driven by its LocalTransform component. This allows us to make a setup where bodies will drive animated bone positions and orientations. The Ragdoll sample scene will show this behavior.