Skip to main content

Function: resolveCircleCircle()

resolveCircleCircle(a, b): void

Defined in: src/mobjects/physics/collisions.ts:69

Resolve a collision between two circle bodies. Does nothing when either body is not a circle, when they do not overlap, or when both are static.

The step separates the overlap by inverse mass, then applies an impulse along the contact normal with restitution min(a, b).

Parameters​

a​

Body

b​

Body

Returns​

void