Om
1.0.0
A universal framework for multimedia simulation
|
A class that holds the results of the EPA algorithm. More...
#include <omPhysicsCollisionEPAResult.h>
Public Member Functions | |
EPAResult (const MinkowskiVertex &newV1, const MinkowskiVertex &newV2, const MinkowskiVertex &newV3, const SIMDFloat4 &newNormal, Float newDistance) | |
Create a new EPA result object with the specified triangle vertices and distance. More... | |
const SIMDFloat4 & | getNormal () const |
Return the contact normal of this EPA result. More... | |
Float | getDistance () const |
Return the penetration distance of this EPA result. More... | |
void | getPoints (SIMDFloat4 &point1, SIMDFloat4 &point2) |
Compute the collision points on each colliding shape. More... | |
A class that holds the results of the EPA algorithm.
The EPA algorithm returns the triangle that is closest to the surface of the minkowski difference between the two convex shapes being tested.
|
inline |
Create a new EPA result object with the specified triangle vertices and distance.
|
inline |
Return the contact normal of this EPA result.
|
inline |
Return the penetration distance of this EPA result.
|
inline |
Compute the collision points on each colliding shape.