Skip to main content

TransformState

@zylem/game-lib


@zylem/game-lib / actions / TransformState

Interface: TransformState

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:127

Transform state managed by Valtio for per-frame physics intent accumulation.

This store accumulates transformation intents during the frame, then applies them all at once after onUpdate() callbacks complete.

Design decisions:

  • Position: Accumulated deltas (additive)
  • Rotation: Last value wins (replacement)
  • Velocity: Accumulated deltas (additive)
  • Angular velocity: Accumulated deltas (additive)

Properties​

angularVelocity​

angularVelocity: object

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:148

Angular velocity (accumulated)

x​

x: number

y​

y: number

z​

z: number


dirty​

dirty: object

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:156

Dirty flags to track what needs to be applied

angularVelocity​

angularVelocity: boolean

position​

position: boolean

rotation​

rotation: boolean

velocityChannels​

velocityChannels: boolean

velocityX​

velocityX: boolean

velocityY​

velocityY: boolean

velocityZ​

velocityZ: boolean


position​

position: object

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:129

Position deltas to be applied (accumulated)

x​

x: number

y​

y: number

z​

z: number


rotation​

rotation: object

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:135

Rotation quaternion (last value wins)

w​

w: number

x​

x: number

y​

y: number

z​

z: number


velocity​

velocity: object

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:142

Linear velocity (accumulated)

x​

x: number

y​

y: number

z​

z: number


velocityChannels​

velocityChannels: Record<string, VelocityIntent>

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/behavior-system-DkFAwLb_.d.ts:154

Per-source velocity intents composed once per frame