From 38b993f787b1694957f7c9876189f8ef9e346515 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sat, 6 Nov 2004 04:58:10 +0000 Subject: Speed up the physics engine: hook the SOLID broad phase, so we can either reject the test or request the penetration depth test as necessary. Previously we were doing the penetration depth test, as well as SOLID's intersection test. --- source/gameengine/Ketsji/KX_RaySensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gameengine/Ketsji/KX_RaySensor.cpp') diff --git a/source/gameengine/Ketsji/KX_RaySensor.cpp b/source/gameengine/Ketsji/KX_RaySensor.cpp index 04f57bb754b..c60b2171cab 100644 --- a/source/gameengine/Ketsji/KX_RaySensor.cpp +++ b/source/gameengine/Ketsji/KX_RaySensor.cpp @@ -195,7 +195,7 @@ bool KX_RaySensor::Evaluate(CValue* event) if (hitObj) { - KX_ClientObjectInfo* info = (KX_ClientObjectInfo*)hitObj->getClientObject(); + KX_ClientObjectInfo* info = static_cast(hitObj->getClientObject()); bool bFound = false; if (!info) @@ -205,7 +205,7 @@ bool KX_RaySensor::Evaluate(CValue* event) break; } - SCA_IObject *hitgameobj = (SCA_IObject*)info->m_clientobject; + SCA_IObject *hitgameobj = info->m_gameobject; if (hitgameobj == obj || info->m_type > KX_ClientObjectInfo::ACTOR) { -- cgit v1.2.3