diff --git a/physx/source/physxcharacterkinematic/src/CctCharacterController.cpp b/physx/source/physxcharacterkinematic/src/CctCharacterController.cpp index daf53dd5b..fac23e761 100644 --- a/physx/source/physxcharacterkinematic/src/CctCharacterController.cpp +++ b/physx/source/physxcharacterkinematic/src/CctCharacterController.cpp @@ -66,6 +66,13 @@ static const PxU32 gObstacleDebugColor = PxU32(PxDebugColor::eARGB_CYAN); static const PxU32 gTBVDebugColor = PxU32(PxDebugColor::eARGB_MAGENTA); static const bool gUsePartialUpdates = true; +PX_FORCE_INLINE bool testSideNormal(const PxVec3& normal, const PxVec3& upDirection, PxF32 slopeLimit) +{ + const float dp = normal.dot(upDirection); + return dp originalBottomPoint + PxExtended(stepOffset))