bounce

fun bounce(penetration: Penetration, colliderVelocity: Direction = Direction(0.0, 0.0)): Bounce

Returns the Bounce resolving penetration against a collider moving at colliderVelocity.

The lowercase verb is the dynamics tier's call-site spelling; the Bounce constructor is equivalent.

Return

The Bounce holding penetration and colliderVelocity.

Parameters

penetration

The penetration the bounce resolves.

colliderVelocity

The collider's velocity; defaults to the zero direction — a static collider.