Skip to content

planRagdoll

planRagdoll(bones, options): RagdollLimb[]

Defined in: sdk/src/physics3d/ragdoll.ts:221

The limbs a skeleton is made into. Pure: bones in, limbs out, parents before children.

A bone points at its longest child; one with no children (a hand, a head) takes its parent’s line and half its length. A bone shorter than minBoneLength gets no limb, and what hangs from it hangs from the limb above.

readonly RagdollBone[]

number

Vec3

number

number

number

RagdollLimb[]