ragdoll
Drives a rig's bones from the bodies that physics2d.ragdoll or physics3d.ragdoll built. influence is how much of the simulated pose the bones take, 0 to 1.
På den här sidan
physics · 2 properties · Physics
Drives a rig's bones from the bodies that physics2d.ragdoll or physics3d.ragdoll built. influence is how much of the simulated pose the bones take, 0 to 1.
In a scene, ragdoll is the node key that applies it. A script reaches each property below as a field on node.ragdoll: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.ragdoll.get() and node.ragdoll.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
bodies |
node | — | The node holding the bodies, one per bone, named after it |
influence |
float | 1 |
How much of the simulated pose the bones take Range 0–1. |
Script functions
Methods of node.ragdoll, the handle a node carrying this component exposes. Every handle also has get(), set(table), patch(table), has() and remove().
From physics:
| method | what it does |
|---|---|
set_ragdoll_influence(float) |
How much of the ragdoll's simulated pose the rig's bones take, 0 to 1: 0 leaves the clip in charge while the bodies simulate unseen, 1 goes limp. Tween it to fall over and get back up. |