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 globalOn1
Position on the entity of the contact in global coordinates.
glm::vec3 globalOn2
Position on the other entity of the contact in global coordinates.
glm::vec3 localOn1
Position on the entity of the contact in local coordinates.
glm::vec3 localOn2
Position on the other entity of the contact in local coordinates.
float penetration
int id

Variable documentation

float cubos::engine::ContactPointData::penetration

Penetration of the contact point. Always positive.

int cubos::engine::ContactPointData::id

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.