Object representing contact information between a pair of convex shapes from the perspective of one of those shapes.
More...
#include <types.hpp>
|
|
glm::vec3 | mPoint |
| | The worldspace point on the surface of this shape that made contact with the other shape.
|
|
glm::vec3 | mNormal |
| | Worldspace normal pointing inward from the surface of this shape such that moving in this direction by the penetration depth will remove the overlap.
|
|
glm::vec3 | mTangent1 |
| | Worldspace tangent orthogonal to the contact normal and the other contact tangent.
|
|
glm::vec3 | mTangent2 |
| | Worldspace tangent orthogonal to the contact normal and the other contact tangent.
|
|
float | mPenetrationDepth |
| | The length by which to move this object in the direction of the contact normal to separate the colliding objects.
|
Object representing contact information between a pair of convex shapes from the perspective of one of those shapes.
All 3D points and vectors are given relative to the world. Additional processing of this data is necessary to convert them to local-space data.
The documentation for this struct was generated from the following file:
- ToyMaker_Main/include/toymaker/engine/spatial_query/types.hpp