Skip to content

BounceResult

Defined in: src/modules/collision/narrowphase.ts:242

A collision resolution: pushOut to separate the mover from the obstacle, and its reflected velocity.

pushOut: Vec2

Defined in: src/modules/collision/narrowphase.ts:244

Displacement to add to the mover’s position to separate the two AABBs.


velocity: Vec2

Defined in: src/modules/collision/narrowphase.ts:246

Reflected velocity — the mover’s velocity bounced off the contact surface.