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:
- @see dyn4j EPA Post
- @see hamaluik EPA Post
- @see WinterDev EPA Explanation
- @see EPA Visualisation
Parameters
| Name | Type | Description |
|---|---|---|
polytope | vec2[] | The final simplex from the GJK algorithm between a and b. |
a | Collider | The first collider |
b | Collider | - |
Returns
EPAResult
A {@link EPAResult} object containing the results of the EPA algorithm
Defined in
src/physics/epa.ts:31