Skip to content

Documentation / scene / PointR

Interface: PointR

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:57

Read-only per-point physics parameters.

Properties

parent

parent: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:59

Index of parent point in the hierarchy (-1 = root, no parent)


child

child: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:61

Index of first child point (-1 = leaf, no child)


applyInvertCollision

applyInvertCollision: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:63

Whether this point responds to inverse colliders (0 or 1)


movableLimitIndex

movableLimitIndex: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:65

Index into movableLimitTargets array (-1 = no limit)


movableLimitRadius

movableLimitRadius: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:67

Max distance from movable limit target (sphere constraint radius)


weight

weight: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:69

0 = fixed (follows animation), 1 = dynamic (simulated)


mass

mass: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:71

Mass of the point, affects wind force scaling


resistance

resistance: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:73

Velocity damping factor [0-1]. Higher = less damping, more movement


hardness

hardness: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:75

Restore-to-animation strength [0-1]. Higher = stiffer, pulls toward animated pose


frictionScale

frictionScale: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:77

Multiplier for accumulated friction from collisions


sliderJointLength

sliderJointLength: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:79

Extra slack length added to horizontal/shear constraint stretch limits


parentLength

parentLength: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:81

Distance to parent point (used for angle limiting)


structuralShrinkVertical

structuralShrinkVertical: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:83

Structural vertical constraint shrink stiffness (×0.5, summed with other point)


structuralStretchVertical

structuralStretchVertical: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:85

Structural vertical constraint stretch stiffness


structuralShrinkHorizontal

structuralShrinkHorizontal: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:87

Structural horizontal constraint shrink stiffness


structuralStretchHorizontal

structuralStretchHorizontal: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:89

Structural horizontal constraint stretch stiffness


shearShrink

shearShrink: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:91

Shear constraint shrink stiffness


shearStretch

shearStretch: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:93

Shear constraint stretch stiffness


bendingShrinkVertical

bendingShrinkVertical: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:95

Bending vertical constraint shrink stiffness


bendingStretchVertical

bendingStretchVertical: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:97

Bending vertical constraint stretch stiffness


bendingShrinkHorizontal

bendingShrinkHorizontal: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:99

Bending horizontal constraint shrink stiffness


bendingStretchHorizontal

bendingStretchHorizontal: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:101

Bending horizontal constraint stretch stiffness


windForceScale

windForceScale: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:103

Wind force multiplier (scaled by depth rate)


fakeWavePower

fakeWavePower: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:105

Fake wave amplitude multiplier for leaf bones


fakeWaveFreq

fakeWaveFreq: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:107

Fake wave frequency offset for leaf bones


forceFadeRatio

forceFadeRatio: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:109

Blend ratio toward animation pose [0-1]. Used for fade in/out


pointRadius

pointRadius: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:111

Collision radius of this point (used in sphere/capsule pushout)


gravity

gravity: Vector3

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:113

Gravity vector applied to this point (scaled by depth curve)


boneAxis

boneAxis: Vector3

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:115

Local-space direction from this bone to its first child (for rotation calculation)


initialLocalScale

initialLocalScale: Vector3

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:117

Initial local scale captured at init (for transform reset)


initialLocalRotation

initialLocalRotation: Quaternion

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:119

Initial local rotation captured at init (for rotation blending)


initialLocalTwist

initialLocalTwist: Quaternion

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:121

Initial twist component of localRotation around boneAxis (for twist preservation)


initialLocalPosition

initialLocalPosition: Vector3

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:123

Initial local position captured at init (for transform reset)

Released under the MIT License.