Bone
A segment of a cutout rig: a limb, a tail, a jaw. Gives its node a length an IK chain measures the reach by, and a rest pose it can return to once nothing is holding it out of position.
On this page
Add it
+ Add node → Bone, IK Chain, Ragdoll Bone creates a node with it already on. Already have a node for it? Add component → BoneComponent.
From a script
A script on the same node writes these fields by name. BoneComponent is the name to pass.
rgs
set_number("BoneComponent", "length", 32.0);
set_point("BoneComponent", "rest_position", vec2(0.0, 0.0));
set_number("BoneComponent", "rest_rotation", 0.0);
set_point("BoneComponent", "rest_scale", vec2(1.0, 1.0)); Fields
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Length | length | number, at least 0 | 32 | How long the bone is, in local units, measured along the direction it points. |
| Rest Position | rest_position | two numbers (x, y) | (0, 0) | Where the bone sits when nothing is driving it. |
| Rest Rotation | rest_rotation | number | 0 | The rest pose's rotation, in radians. |
| Rest Scale | rest_scale | two numbers (x, y) | (1, 1) | The rest pose's scale. |