From 4cd864545ca823fac4ef5f9ac3a055ec9d8b37d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Wed, 25 Sep 2013 19:14:20 +0000 Subject: [PATCH] assert on non-handled raycast. --- test/physics/lolphysics.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/physics/lolphysics.h b/test/physics/lolphysics.h index 6767d087..0cd0bfda 100644 --- a/test/physics/lolphysics.h +++ b/test/physics/lolphysics.h @@ -147,6 +147,8 @@ public: virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult& rayResult,bool normalInWorldSpace) { + UNUSED(rayResult); + UNUSED(normalInWorldSpace); return .0f; } }; @@ -185,7 +187,7 @@ public: } default: { - break; + ASSERT(0, "Raycast not handled"); } } @@ -217,7 +219,7 @@ public: } default: { - break; + ASSERT(0, "Raycast not handled"); } } } @@ -257,6 +259,8 @@ private: void CustomSetWorldLimit(vec3 const &NewWorldMin, vec3 const &NewWorldMax) { + UNUSED(NewWorldMin); + UNUSED(NewWorldMax); } void CustomSetTimestep(float NewTimestep) { } @@ -358,6 +362,10 @@ private: SearchList = &m_character_controller_list; break; } + default: + { + ASSERT(0, "Physic type does not exist."); + } } if (AddObject)