AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ConvexUtils.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXCOLLIDE_CONVEX_UTILS_H
18#define AGXCOLLIDE_CONVEX_UTILS_H
19
20#include <agxCollide/Contacts.h>
22
23namespace agxCollide
24{
25
42 const Shape* convexShape1,
43 const Shape* convexShape2,
44 const agx::AffineMatrix4x4& transform1,
45 const agx::AffineMatrix4x4& transform2,
46 ShapeCollider::LocalContactPointVector& result,
47 const agx::Real epaAccuracy = agx::AGX_EQUIVALENT_EPSILON);
48
49
67 const agxCollide::Shape* shape1,
68 const agxCollide::Shape* shape2,
69 const agx::AffineMatrix4x4& transform1,
70 const agx::AffineMatrix4x4& transform2,
71 const agx::Vec3& point,
72 const agx::Vec3& normal,
73 const agx::Real deepestDepth,
74 agxCollide::ShapeCollider::LocalContactPointVector& result,
75 bool& keepOriginalPoint );
76
83}
84
85
86#endif
87
88
#define AGXPHYSICS_EXPORT
A convex class for geometric intersection tests.
Definition Convex.h:37
Base class for a shape.
Definition Shape.h:54
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGXPHYSICS_EXPORT void collideConvexConvex(const Shape *convexShape1, const Shape *convexShape2, const agx::AffineMatrix4x4 &transform1, const agx::AffineMatrix4x4 &transform2, ShapeCollider::LocalContactPointVector &result, const agx::Real epaAccuracy=agx::AGX_EQUIVALENT_EPSILON)
Collides two convex shapes (Box, Capsule, Convex, Cylinder, Sphere).
AGXPHYSICS_EXPORT bool isPointInsideConvex(const agx::Vec3 &point, const agxCollide::Convex *convex)
Check if a point in world coordinates is inside a given convex.
AGXPHYSICS_EXPORT void createSupportContactPoints(const agxCollide::Shape *shape1, const agxCollide::Shape *shape2, const agx::AffineMatrix4x4 &transform1, const agx::AffineMatrix4x4 &transform2, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real deepestDepth, agxCollide::ShapeCollider::LocalContactPointVector &result, bool &keepOriginalPoint)
Given 2 convex shapes and 1 contact point (which is assumed to be the deepest possible point) this fu...
double Real
Definition Real.h:42
const Real AGX_EQUIVALENT_EPSILON
Definition Math.h:57