Skip to main content

Module: physics/epa

Functions

EPA

โ–ธ EPA(polytope, a, b): EPAResult

Performs EPA collision response algorithm between 2 colliders.

For a detailed explanation on how this algorithm works:

Parameters

NameTypeDescription
polytopevec2[]The final simplex from the GJK algorithm between a and b.
aColliderThe first collider
bCollider-

Returns

EPAResult

A {@link EPAResult} object containing the results of the EPA algorithm

Defined in

src/physics/epa.ts:31