Class PenetrationQuery

Inheritance Relationships

Derived Types

Class Documentation

class legion::physics::PenetrationQuery

Subclassed by legion::physics::ConvexConvexPenetrationQuery, legion::physics::EdgePenetrationQuery

Public Functions

inline PenetrationQuery(math::vec3 &pFaceCentroid, math::vec3 &pNormal, float pPenetration, bool pIsARef)
inline virtual void populateContactList(physics_manifold &manifold, math::mat4 &refTransform, math::mat4 incTransform, PhysicsCollider *refCollider)

given the necessary information to create contact points between 2 colliding colliders calculates the contact points of the colliders and pushes them into the physics_manifold

Public Members

math::vec3 faceCentroid
math::vec3 normal
float penetration = 0.0f
bool isARef
std::string debugID = "na"