Skip to main content

StageRenderSlot

@zylem/game-lib


@zylem/game-lib / runtime / StageRenderSlot

Interface: StageRenderSlot

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:548

Decoded view of one entity's slot in the unified render buffer.

Mirrors the STAGE_RENDER_STRIDE (12-float) packing documented in runtime/stage/render.rs: [0..3] position, [3..7] rotation xyzw, [7] uniform scale, [8..11] custom0..custom2 (shading hints), [11] custom3 sleeping flag (1.0 = sleeping).

Properties​

custom​

custom: [number, number, number, number]

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:552


isSleeping​

isSleeping: boolean

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:554

True when custom[3] indicates the body is sleeping.


position​

position: [number, number, number]

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:549


rotation​

rotation: [number, number, number, number]

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:550


scale​

scale: number

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:551