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.
Properties
Section titled “Properties”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
Section titled “center”center:
Vec3
Defined in: sdk/src/physics3d/ragdoll.ts:143
connected
Section titled “connected”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
Section titled “entity”entity:
number
Defined in: sdk/src/physics3d/ragdoll.ts:139
halfExtents
Section titled “halfExtents”halfExtents:
Vec3
Defined in: sdk/src/physics3d/ragdoll.ts:142
hinge?
Section titled “hinge?”
optionalhinge?: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
Section titled “normalAxis”normalAxis:
Vec3
upper:
number
normalAxis
Section titled “normalAxis”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.
swingDeg?
Section titled “swingDeg?”
optionalswingDeg?: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
twistDeg?
Section titled “twistDeg?”
optionaltwistDeg?:number
Defined in: sdk/src/physics3d/ragdoll.ts:152