Ragdoll

A CrowdBeRagdoll is a Behavior which can be used to apply the dynamic physic controlled mode on an Entity.
 
A ragdoll behavior in the behavior editor
 
To be able to use a Ragdoll Behavior, a physics locator needs to be present in the scene, and physics needs to be enabled in the Entity Type Advanced Attributes
 
Creating a Ragdoll Behavior can be performed through the following options:
  • Behavior Editor / Behavior Library: 
  • Crowd Menu: Crowd Behaviors / Behaviors / CrowdBeRagdoll Node
  • MEL command: glmCrowdBeRagdollCmd;

 

Configuration

A Ragdoll Behavior defines the following specific attributes. To get more information about shared parameters, see here.
 
When a Ragdoll Behavior starts (and only when it starts, not continously), an impulse (a force) can be applied to the Entity. The following parameters define how this impulse is computed

Impulse Direction Attributes

Impulse Direction Attributes of a ragdoll behavior
 
Direction Mode

Select the computation mode of the impulse

  • Static: fixed direction given in the world frame
  • Character Relative: fixed direction given in the character frame
  • Locator Relative: the direction is a vector going from the locator to the root bone of the character
Direction Locator The locator to be mapped when using the Locator Relative mode. To know how to map/unmap a node, see Usual Manipulations
Direction Input field for fixed directions (static and character relative modes)
Direction Noise Specify the amount of random to be added to the computed direction

Impulse Intensity Attributes

Impulse Intensity attributes of a ragdoll behavior
 
Impulse Intensity Mode

Select the computation mode for impulse intensity

  • Static: fixed value given by below parameters
  • Locator Relative: the intensity is computed relatively to the distance of a character from a specified locator. A positive intensity sends the character away from the locator (explosion), a negative intensity sends them toward the locator
Intensity Random Min/Max Enables to specify bounds for a Static mode computation
Intensity Locator Locator to be used in Locator Relative Mode (it is obviously possible to use the same locator used for Direction computation (see above). Intensity will be interpolated between a value at the locator position and another one at a given (fadeOff) distance
Intensity at epicenter Intensity to apply when the character is located exactly on the Intensity Locator
FadeOff Distance Distance from the Intensity Locator where the lower intensity will be applied
Intensity at FadeOff Intensity to be applied when the distance from the Intensity Locator is greater or equal to the FadeOff Distance.
Intensity Noise Random value to be added after computation

Advanced Ragdoll Attributes


Avanced Ragdoll Attributes of a Ragdoll Behavior

 

Impulsion Mask

Body parts on which the impulse will be applied. Applying the impulse on different body parts enables to simulate different effects like headshots, slipping feets, rolling characters...

Animation Mask Enables to specify on which part of the body the physics computation will be applied. This enable to mix a Ragdoll Behavior and a Motion Behavior to control arms & legs for example.
Stop Mode

Enable to control how the character behaves when the ragdoll behavior stops:

  • Animation: keeps simulating the character using physics
  • Locked Posture: play the last computed posture infinitely (very useful for dead characters who should stop moving)