rename NarrowPhaseAlgorithmType::None to NONE

This commit is contained in:
Saeun Acreat 2023-01-16 21:55:00 +13:00
parent 17dd22e677
commit d6d607dda0
4 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ namespace reactphysics3d {
/// Enumeration for the type of narrow-phase
/// collision detection algorithm
enum class NarrowPhaseAlgorithmType {
None,
NONE,
SphereVsSphere,
SphereVsCapsule,
CapsuleVsCapsule,

View File

@ -152,7 +152,7 @@ RP3D_FORCE_INLINE void NarrowPhaseInput::addNarrowPhaseTest(uint64 pairId, Entit
case NarrowPhaseAlgorithmType::ConvexPolyhedronVsConvexPolyhedron:
mConvexPolyhedronVsConvexPolyhedronBatch.addNarrowPhaseInfo(pairId, collider1, collider2, shape1, shape2, shape1Transform, shape2Transform, reportContacts, lastFrameInfo, shapeAllocator);
break;
case NarrowPhaseAlgorithmType::None:
case NarrowPhaseAlgorithmType::NONE:
// Must never happen
assert(false);
break;

View File

@ -75,7 +75,7 @@ NarrowPhaseAlgorithmType CollisionDispatch::selectAlgorithm(int type1, int type2
CollisionShapeType shape2Type = static_cast<CollisionShapeType>(type2);
if (type1 > type2) {
return NarrowPhaseAlgorithmType::None;
return NarrowPhaseAlgorithmType::NONE;
}
// Sphere vs Sphere algorithm
if (shape1Type == CollisionShapeType::SPHERE && shape2Type == CollisionShapeType::SPHERE) {
@ -103,7 +103,7 @@ NarrowPhaseAlgorithmType CollisionDispatch::selectAlgorithm(int type1, int type2
return NarrowPhaseAlgorithmType::ConvexPolyhedronVsConvexPolyhedron;
}
return NarrowPhaseAlgorithmType::None;
return NarrowPhaseAlgorithmType::NONE;
}
// Set the Sphere vs Sphere narrow-phase collision detection algorithm

View File

@ -478,7 +478,7 @@ void CollisionDetectionSystem::computeConvexVsConcaveMiddlePhase(OverlappingPair
assert(convexShape->isConvex());
assert(!concaveShape->isConvex());
assert(overlappingPair.narrowPhaseAlgorithmType != NarrowPhaseAlgorithmType::None);
assert(overlappingPair.narrowPhaseAlgorithmType != NarrowPhaseAlgorithmType::NONE);
// Compute the convex shape AABB in the local-space of the concave shape
AABB aabb;