computeWorldBoundary2DHits
@zylem/game-lib / behavior / computeWorldBoundary2DHits
Function: computeWorldBoundary2DHits()
computeWorldBoundary2DHits(
position,bounds):WorldBoundary2DHits
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:45
Compute which boundaries are being hit for a position and bounds.
This matches the semantics of the legacy boundary2d behavior:
- left hit if x <= left
- right hit if x >= right
- bottom hit if y <= bottom
- top hit if y >= top