cubos::engine::ContactPointData struct

Contains info regarding a contact point of a @ContactManifold.

Public variables

cubos::core::ecs::Entity entity
Entity to which the normal is relative to.
glm::vec3 position1
Position on the entity of the contact in global coordinates.
glm::vec3 position2
Position on the other entity of the contact in global coordinates.
float penetration
int id

Variable documentation

float cubos::engine::ContactPointData::penetration

Penetration of the contact point. Always positive.

int cubos::engine::ContactPointData::id

TODO: normal and tangent impulse? The contact feature ID on the first shape. This indicates the ID of the vertex, edge, or face of the contact, if one can be determined.