Skip to content

Documentation / scene / PointRW

Interface: PointRW ​

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

Mutable per-point simulation state.

Properties ​

positionToTransform ​

positionToTransform: Vector3

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

Final output position to write back to the transform


positionCurrentTransform ​

positionCurrentTransform: Vector3

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

Current frame's animated world position (read from transform)


positionPreviousTransform ​

positionPreviousTransform: Vector3

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

Previous frame's animated world position


positionCurrent ​

positionCurrent: Vector3

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

Current simulated world position (Verlet integration state)


positionPrevious ​

positionPrevious: Vector3

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

Previous simulated world position (Verlet integration state)


directionPrevious ​

directionPrevious: Vector3

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

Previous frame's bone direction (fallback when direction is zero-length)


fakeWindDirection ​

fakeWindDirection: Vector3

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

Interpolated wind direction for fake wave effect


grabberIndex ​

grabberIndex: number

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

Index of the grabber currently holding this point (-1 = not grabbed)


grabberDistance ​

grabberDistance: number

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

Distance maintained from grabber center when grabbed


friction ​

friction: number

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

Accumulated friction from collisions this frame (reset each substep)

Released under the MIT License.