BounceResult
Defined in: src/modules/collision/narrowphase.ts:242
A collision resolution: pushOut to separate the mover from the obstacle, and its reflected velocity.
Properties
Section titled “Properties”pushOut
Section titled “pushOut”pushOut:
Vec2
Defined in: src/modules/collision/narrowphase.ts:244
Displacement to add to the mover’s position to separate the two AABBs.
velocity
Section titled “velocity”velocity:
Vec2
Defined in: src/modules/collision/narrowphase.ts:246
Reflected velocity — the mover’s velocity bounced off the contact surface.