Using Kinematic Bodies with Simulated Parents

This tutorial covers setting up kinematic physics bodies with simulated parents.

On this page

The Physics Asset Editor provides several different ways in which you can simulate physics bodies including the ability to have kinematic physics bodies with simulated parents. This enables you to define child bodies that can be driven by animation data while the parents of those bodies are driven by physics simulation data. This can be useful if you have a character that you want to perform a physics-based reaction while playing a hanging idle or hanging traversal animation.

In this How-to, we use kinematic bodies with simulated parents to generate the effect of a character hanging from a ledge while the rest of the body is simulated with physics.

We use kinematic bodies with simulated parents to generate the effect of a character hanging from a ledge while the rest of the body is simulated with physics

Steps

For this guide, we are using the Blueprint Third Person Template project with Starter Content enabled.

  1. In your project in the Content/Mannequin/Character/Mesh folder, open the SK_Mannequin_PhysicsAsset.

    Open the SKMannequinPhysicsAsset

  2. In the Skeleton Tree panel, hold Ctrl and select both the hand_l and hand_r bodies, then in the Details panel, change the Physics Type to Kinematic.

    Change the Physics Type to Kinematic

    By setting these bones to Kinematic, they will not simulate physics and will follow any animation data.

    Alternatively, you can right-click bones in the hierarchy list and expand Physics Type in the Context Menu, then set their Body Physics Type to Kinematic.

    This option enables you to set the Physics Type property for children's bodies below the current bone.

  3. Click on a space within the viewport to deselect all bones, then in the Details panel, change the Physics Update Mode to Component Transform is Kinematic.

    Change the Physics Update Mode to Component Transform is Kinematic

    This option determines whether the simulation of the root body updates component transform or is kinematic.

  4. From the toolbar, open the dropdown menu under the arrow icon, and select Simulate.

    Select Simulate

    The character in the viewport will slump over and appear to be hanging by their hands.

    he character in the viewport will slump over and appear to be hanging by their hands

  5. From the toolbar, open the Animation dropdown menu, then select the ThirdPersonJump_Loop animation.

    Select the ThirdPersonJumpLoop animation

    The hands (because they are set to kinematic) will follow the animation data contained within the ThirdPersonJump_Loop motion.

    The hands will follow the animation data contained within the ThirdPersonJumpLoop motion

  6. From the Main Editor window, drag the SK_Mannequin_PhysicsAsset into the level and then, in the Details panel, set Physics Transform Update Mode to Component Transform is Kinematic.

    Set Physics Transform Update Mode to Component Transform is Kinematic

  7. Select the SkeletalMeshComponent, then change Animation Mode to Use Animation Asset and Anim to Play to ThirdPersonJump_Loop.

    Change Animation Mode to Use Animation Asset and Anim to Play to ThirdPersonJumpLoop

  8. Click the Play button from the toolbar to play in the editor.

End Result

Below we've placed the character near a ledge when we run and bump into it, it reacts to physics while the hands appear slightly fixed.

While the animation we used above is not ideal, below we apply the same concept to an animation of a character hanging and traversing a ledge.

The arms and head are set to Kinematic (denoted below with Gold Boxes) while the rest is being simulated.

The arms and head are set to Kinematic while the rest is being simulated

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel