Ragdoll
The ragdoll ability will enable or disable a ragdoll created with the Unity Ragdoll Wizard. The ability can automatically start when the character dies or can be started by the environment/player.
Setup
- Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.
- Add the Ragdoll ability. This ability should be placed near the top of the ability list so it will take priority over the abilities beneath it.
- If you have not already created the ragdoll through the Ragdoll Wizard then select the Add Ragdoll Colliders button under the Editor foldout. Create the ragdoll using that wizard.
- Ensure the Start/Stop Type values are correct and the Start On Death field is the correct value.
Inspected Fields
Start On Death
Should the ability start when the character dies?
Start Delay
Specifies the delay after the ability starts that the character should turn into a ragdoll.
Ragdoll Layer
The layer that the colliders should switch to when the ragdoll is active.
Inactive Ragdoll Layer
The layer that the colliders should switch to when the ragdoll is inactive.
Camera Rotational Force
The amount of force to add to the camera when the ability starts This value will be multiplied by the magnitude of the force that killed the character if the ability starts when the character died.