|
group2 0.1.0
CSE 125 Group 2
|
A single recorded contact event. More...
#include <DebugCollisionDraw.hpp>
Public Attributes | |
| glm::vec3 | point {0.0f} |
| World-space contact point. | |
| glm::vec3 | normal {0.0f} |
| Unit surface normal pointing into free space. | |
| float | depth = 0.0f |
| Depenetration depth (0 for sweep hits). | |
| ContactSource | source {} |
| Origin classification (for filtering/colouring). | |
| uint32_t | primitiveIndex = 0 |
| Source-primitive index (e.g. triangle id, box id). | |
A single recorded contact event.
normal always points from solid into free space (the direction the entity is pushed). depth is the depenetration depth in world units (0 for swept hits, which have no penetration depth).
| float physics::debug::Contact::depth = 0.0f |
Depenetration depth (0 for sweep hits).
| glm::vec3 physics::debug::Contact::normal {0.0f} |
Unit surface normal pointing into free space.
| glm::vec3 physics::debug::Contact::point {0.0f} |
World-space contact point.
| uint32_t physics::debug::Contact::primitiveIndex = 0 |
Source-primitive index (e.g. triangle id, box id).
| ContactSource physics::debug::Contact::source {} |
Origin classification (for filtering/colouring).