Lumberyard
Legacy Reference

Ragdoll Skeleton DCC Setup

You can set up your ragdoll skeleton in a DCC tool such as Maya or 3ds Max.

To setup a ragdoll skeleton

  1. Create phys mesh proxies for the main joints that need to ragdoll. They should match the orientation of their respective joint. The first or highest hierarchical ragdoll joint and proxy (such as the pelvis and hip) should have the z-up orientation.

  2. Name the physics mesh proxies based on the joint they represent and with the appropriate suffix. Examples:

    • For Maya, a joint named def_l_thigh would have a physParentFrame named def_l_thigh_phys.

    • For 3ds Max, a joint named Bone C SpineA would have a physParentFrame named Bone C SpineA Phys.

  3. Create any necessary PhysParentFrame groups or nodes for joints that need to rotate more than the y-axis limit range of -90 to 90 degrees and name them based on the joint they represent with the appropriate suffix. For example:

    For Maya, a joint named def_l_thigh would have a physParentFrame named def_l_thigh_physParentFrame.

    For 3ds Max, a joint named Bone C SpineA would have a physParentFrame named Bone C SpineA Phys ParentFrame.

  4. Assign each physics mesh proxy and physParentFrame to a parent. If using a physParentFrame, nest the physics mesh proxy under the physParentFrame, and the physParentFrame under the joint it belongs to. If there is only the physics mesh proxy, nest the proxy under the joint it belongs to.

  5. Create and assign physics mesh materials to the appropriate physics mesh as needed. For example, a material for the left arm assigned to physics mesh proxies that are part of the left arm.

  6. Add rotation limit values to skeleton joints that will be used in the ragdoll. In addition, you must add some rotation limit information to joints that do not have a physics mesh proxy but that are in the hierarchy of the ragdoll joints. For example, a clavicle needs some rotation limits even though it typically does not have a physics proxy mesh.

  7. Export the skeleton's .chr file and the material group or multimaterial that contains the physics mesh materials.