Go to the source code of this file.
|
| | agx |
| | The agx namespace contains the dynamics/math part of the AGX Dynamics API.
|
| |
|
| bool | agx::sphereBoxOverlapTest (Real sphereRadius, const Vec3 &spherePosition, const Vec3 &boxHalfExtents, const AffineMatrix4x4 &boxInvTransform) |
| |
◆ AXIS_TEST
| #define AXIS_TEST |
( |
|
axis | ) |
|
Value: { \
Real diff = std::abs( localSpherePosition[axis] ) - boxHalfExtents[axis]; \
if (diff > 0) { \
if (diff > sphereRadius) \
return false; \
isOutside = true; \
pointOnBox[axis] = (localSpherePosition[axis] > 0) ? boxHalfExtents[axis] : -boxHalfExtents[axis]; \
} \
}
Definition at line 26 of file SphereBoxOverlapTest.h.