AGXPHYSICS_EXPORT agxCollide::ShapeDistanceResult computeShapeDistance(const agxCollide::Shape *shape1, const agx::AffineMatrix4x4 &transform1, const agxCollide::Shape *shape2, const agx::AffineMatrix4x4 &transform2, agx::Vec3 &point1, agx::Vec3 &point2)
Utility function to compute the minimum distance between two shapes.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Generic error, e.g supported shapes but invalid values such as some negative shape size...
ShapeDistanceResult
Status values that can be returned when performing shape-shape distance computation.
AGXPHYSICS_EXPORT agxCollide::ShapeDistanceResult computeGeometryDistance(const agxCollide::Geometry *geometry1, const agx::AffineMatrix4x4 &transform1, const agxCollide::Geometry *geometry2, const agx::AffineMatrix4x4 &transform2, agx::Vec3 &point1, agx::Vec3 &point2)
Utility method to perform shape-shape minimum distance test between all compatible shape pairs...
One or more input shapes is of a non-supported type (Shape::hasSupportFunction() returns false) ...
Distance measurement successful.