Pure virtual interface for collision detection algorithms.
Definition collision_detector.hpp:36
virtual CollisionManifold DetectCollision(const Shape *shapeA, const Vector3 &posA, const Quaternion &rotA, const Shape *shapeB, const Vector3 &posB, const Quaternion &rotB)=0
Computes the collision manifold between two generic shapes.
virtual ~CollisionDetector()=default
Base class for all collision geometries in the physics engine.
Definition shape.hpp:28
Represents the result of a collision check between two shapes.
Definition collision_detector.hpp:28
std::vector< ContactPoint > contacts
Generated contact points.
Definition collision_detector.hpp:29
bool hasCollision
True if shapes are penetrating.
Definition collision_detector.hpp:30
Unit-quaternion rotation representation and rotation algebra helpers.
Definition quaternion.hpp:25
3D vector utility used throughout JSim physics.
Definition vector.hpp:22