Skip to content

RagdollLimb

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

What one limb is made of: a box in its bone’s frame, and the joint to the limb above.

axis: Vec3

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

The twist axis and a reference perpendicular to it, in this bone’s own frame.


center: Vec3

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


connected: number | null

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

The limb whose body this one is joined to; null for the topmost, which hangs from nothing.


entity: number

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


halfExtents: Vec3

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


optional hinge?: object

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

Set where the joint is a one-way hinge (a knee, an elbow): the hinge axis and a reference perpendicular to it, in this bone’s own frame, and how far the bone may turn about it either way from the pose it is in when the joint is made, in radians (the lower is at most 0, the upper at least 0).

axis: Vec3

lower: number

normalAxis: Vec3

upper: number


normalAxis: Vec3

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


swing: number

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

The share (0 to 1) of the component’s swing and twist this joint gets.


optional swingDeg?: number

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

Limits the author gave this bone in degrees, which stand in for the share of the component’s.


twist: number

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


optional twistDeg?: number

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