WorldBoundary2DHandle
@zylem/game-lib / behavior / WorldBoundary2DHandle
Interface: WorldBoundary2DHandle
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-2d.d.ts:105
Handle methods provided by WorldBoundary2DBehavior
Methods
getLastHits()
getLastHits():
WorldBoundary2DHits|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-2d.d.ts:110
Get the last computed boundary hits. Returns null until entity is spawned and FSM is initialized.
Returns
WorldBoundary2DHits | null
getMovement()
getMovement(
moveX,moveY):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-2d.d.ts:115
Get adjusted movement values based on boundary hits. Zeros out movement into boundaries the entity is touching.
Parameters
moveX
number
moveY
number
Returns
object
moveX
moveX:
number
moveY
moveY:
number