Skip to content

Documentation / scene / PhysicsCurves

Interface: PhysicsCurves ​

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:30

Depth-based physics parameter curves. Each curve is evaluated with t = pointDepth / maxDepth (0 at root, 1 at tip). This allows parameters to vary smoothly along the bone chain.

Properties ​

massScale ​

massScale: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:32

Scales point mass by depth


gravityScale ​

gravityScale: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:34

Scales gravity strength by depth


windForceScale ​

windForceScale: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:36

Scales wind force effect by depth (also multiplied by depth rate)


resistance ​

resistance: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:38

Velocity damping [0-1]. Higher = less damping. Controls how much velocity is preserved


hardness ​

hardness: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:40

Restore-to-animation stiffness [0-1]. Higher = bone stays closer to animated pose


friction ​

friction: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:42

Friction multiplier by depth. Scales collision friction accumulation


pointRadius ​

pointRadius: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:44

Collision radius by depth, mapped from VRM SpringBone hitRadius when available


sliderJointLength ​

sliderJointLength: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:46

Extra slack length for horizontal/shear constraints (allows stretching)


allShrinkScale ​

allShrinkScale: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:48

Global shrink stiffness multiplier (applied to all constraint types)


allStretchScale ​

allStretchScale: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:50

Global stretch stiffness multiplier (applied to all constraint types)


structuralShrinkVertical ​

structuralShrinkVertical: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:52

Structural vertical constraint shrink stiffness by depth


structuralStretchVertical ​

structuralStretchVertical: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:54

Structural vertical constraint stretch stiffness by depth


structuralShrinkHorizontal ​

structuralShrinkHorizontal: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:56

Structural horizontal constraint shrink stiffness by depth


structuralStretchHorizontal ​

structuralStretchHorizontal: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:58

Structural horizontal constraint stretch stiffness by depth


shearShrink ​

shearShrink: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:60

Shear constraint shrink stiffness by depth


shearStretch ​

shearStretch: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:62

Shear constraint stretch stiffness by depth


bendingShrinkVertical ​

bendingShrinkVertical: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:64

Bending vertical constraint shrink stiffness by depth


bendingStretchVertical ​

bendingStretchVertical: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:66

Bending vertical constraint stretch stiffness by depth


bendingShrinkHorizontal ​

bendingShrinkHorizontal: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:68

Bending horizontal constraint shrink stiffness by depth


bendingStretchHorizontal ​

bendingStretchHorizontal: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:70

Bending horizontal constraint stretch stiffness by depth


fakeWavePower ​

fakeWavePower: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:72

Fake wave amplitude by depth (sinusoidal pseudo-wind on leaf bones)


fakeWaveFreq ​

fakeWaveFreq: InterpolatorScalar

Defined in: libs/scene/src/animation/joint_dynamics/controller.ts:74

Fake wave frequency offset by depth

Released under the MIT License.