Skip to content

Components

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

FieldScript nameKindDefaultWhat it does
Lengthlengthnumber, at least 032How long the bone is, in local units, measured along the direction it points.
Rest Positionrest_positiontwo numbers (x, y)(0, 0)Where the bone sits when nothing is driving it.
Rest Rotationrest_rotationnumber0The rest pose's rotation, in radians.
Rest Scalerest_scaletwo numbers (x, y)(1, 1)The rest pose's scale.