WorldBoundary2DHit
@zylem/game-lib / behavior / WorldBoundary2DHit
Type Alias: WorldBoundary2DHit
WorldBoundary2DHit =
"top"|"bottom"|"left"|"right"
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:17
WorldBoundary2DFSM
Minimal FSM + extended state to track which world boundaries were hit.
Notes:
- "Hit boundaries" is inherently a set (can hit left+bottom in one frame),
so we store it as extended state (
lastHits) rather than a single FSM state. - The FSM state is still useful for coarse status like "inside" vs "touching".