The ragdoll module applies applies ragdoll physics to the agent group agents.
Your agent types will have to be set up for with a ragdoll file.
Attributes
Attributes | Type | Overridable | Description |
---|---|---|---|
mode | int | yes | The ragdoll mode. Values are: |
useDynamicModeMetadata | bool | yes | If set the true the mode is driven by the "dynamicMode" metadata |
partialRagdollFilter | string | yes | A comma separated string containing the joint names with partial ragdoll (wildcards are supported) |
dynamicOnCollision | integer | yes | Activate dynamics on collision |
dynamicOnCollisionFilter | string | yes | A comma separated string containing the joint names that are used to trigger the dynamic on collision mode (wildcards are supported) |
dynamicOnCollisionPool | integer | yes | Pool on which an agent is assigned after a dynamicCollision event happen. Value of -1 means it collide with everything, -2 to disable collision, positive integer for set specific pool |
collisionForceThreshold | double | yes | Magnitude of a force that is applied to a rigid body to trigger the dynamicOnCollision mode |
motorRagdollDamping | double | yes | Motor constraint damping value, with value of -1 the operator use the ones store inside the ragdoll setup file |
motorRagdollStiffness | double | yes | Motor constraint stiffness value, with value of -1 the operator use the ones store inside the ragdoll setup file |
motorRagdollIsAcceleration | integer | yes | Motor constraint "isAcceleration" value, with value of -1 the operator use the ones store inside the ragdoll setup file |
motorRagdollMaxForce | double | yes | Motor constraint "max force" value, with value of -1 the operator use the ones store inside the ragdoll setup file |
breakable | integer | yes | Activate the cosntriant breakable force |
breakableFilter | string | yes | A comma separated string containing the joint names on wich the operator set the breakable option (wildcards are supported) |
breakForce | vector2 | yes | Breakable force limit (x for linear magnitude and y for torque magnitude) |
animationBlending | double | yes | Blend weight used on motor constraint. With a value of 1.0 the agent clip animation is applied on the motor constraint |
stuckOnCollision | bool | yes | If set to true, rigid bodies gets stuck on collision |
stuckOnCollisionBreakForce | vector2 | yes | Break force magnitude to break the stuck on collision constraint. Value of -1 means an infinite force |
stuckOnCollisionImpulse | double | yes | Inpulse magnitude multiplier applied to the impulse force on a stuckoncollision event |
stuckOnCollisionPool | integer | yes | Pool on which an agent is assigned after a stuckOnCollision event happen. Value of -1 means it collide with everything, -2 to disable collision, positive integer for set specific pool |
collisionPool | integer | yes | Collision pool. Value of -1 means it collide with everything, -2 to disable collision, positive integer for set specific pool |
partialRagdollSkipChildren | bool | yes | If true when an agent is in partial ragdoll the operator desn't create rigid bodies on the children of the joints specified onto the partialRagdollFilter |
selfCollision | bool | yes | Enable the agent self collision |
debug | bool | no | Activate the dubegging drawing on the selected agents. |