BoundaryRicochet3DCoordinator
@zylem/game-lib / behavior / BoundaryRicochet3DCoordinator
Class: BoundaryRicochet3DCoordinator
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/coordinators/boundary-ricochet-3d.d.ts:18
Coordinator that bridges WorldBoundary3DBehavior and Ricochet3DBehavior. Snaps the body back to the boundary's clamped position before reflecting, so fast entities can't tunnel outside the box between frames.
Constructors
Constructor
new BoundaryRicochet3DCoordinator(
entity,boundary,ricochet):BoundaryRicochet3DCoordinator
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/coordinators/boundary-ricochet-3d.d.ts:22
Parameters
entity
boundary
ricochet
Returns
BoundaryRicochet3DCoordinator
Methods
update()
update():
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/coordinators/boundary-ricochet-3d.d.ts:23
Returns
boolean