Skip to main content

WorldBoundary3DFSM

@zylem/game-lib


@zylem/game-lib / behavior / WorldBoundary3DFSM

Class: WorldBoundary3DFSM

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/world-boundary-3d.d.ts:40

Behaviors Module Index

Behaviors now live in the standalone, tree-shakable @zylem/behaviors package (built on @zylem/behaviors/core). This barrel re-exports that public surface so existing @zylem/game-lib/behavior consumers keep working.

IMPORTANT: do NOT use export * from '@zylem/behaviors' here. Because @zylem/behaviors is external in game-lib's tsup build, esbuild compiles a star re-export of an external into a runtime __reExport helper with no static export names. Downstream bundlers (e.g. the examples/arena Vite builds) then cannot statically resolve named value imports such as FractureOptions and fail with "X is not exported by game-lib/dist/behavior.js". Explicit named re-exports below are preserved statically and keep a single runtime copy of @zylem/behaviors (no bundling/duplication).

The lists mirror the full public API of @zylem/behaviors (values from its built dist/index.js export block; types are the remaining dist/index.d.ts exports). When behaviors are added/removed in @zylem/behaviors, update these lists to match.

Constructors​

Constructor​

new WorldBoundary3DFSM(): WorldBoundary3DFSM

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/world-boundary-3d.d.ts:46

Returns​

WorldBoundary3DFSM

Properties​

machine​

readonly machine: SyncStateMachine<WorldBoundary3DState, WorldBoundary3DEvent, never>

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/world-boundary-3d.d.ts:41

Methods​

getLastClampedPosition()​

getLastClampedPosition(): WorldBoundary3DPosition | null

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/world-boundary-3d.d.ts:55

Returns​

WorldBoundary3DPosition | null


getLastHits()​

getLastHits(): WorldBoundary3DHits

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/world-boundary-3d.d.ts:48

Returns​

WorldBoundary3DHits


getLastPosition()​

getLastPosition(): WorldBoundary3DPosition | null

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/world-boundary-3d.d.ts:54

Returns​

WorldBoundary3DPosition | null


getLastUpdatedAtMs()​

getLastUpdatedAtMs(): number | null

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/world-boundary-3d.d.ts:56

Returns​

number | null


getMovement()​

getMovement(moveX, moveY, moveZ): 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/world-boundary-3d.d.ts:49

Parameters​

moveX​

number

moveY​

number

moveZ​

number

Returns​

object

moveX​

moveX: number

moveY​

moveY: number

moveZ​

moveZ: number


getState()​

getState(): WorldBoundary3DState

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/world-boundary-3d.d.ts:47

Returns​

WorldBoundary3DState


update()​

update(position, bounds, padding?): WorldBoundary3DHits

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/world-boundary-3d.d.ts:57

Parameters​

position​

WorldBoundary3DPosition

bounds​

WorldBoundary3DBounds

padding?​

Bounds3DPaddingInput

Returns​

WorldBoundary3DHits