diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-01 22:17:37 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-01 22:17:37 +0300 |
commit | 3cf5b1d6fb87f0eac94893dbe8b9fff688eac54e (patch) | |
tree | 9dfb0e01ac66611eaef99c4964e812dc21e4d902 /source/gameengine/Ketsji/KX_TouchSensor.h | |
parent | 407b2d334d2facab83f847045aca45cc9ab49cde (diff) |
Radar/Near sensor performance problem fixed
Diffstat (limited to 'source/gameengine/Ketsji/KX_TouchSensor.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_TouchSensor.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_TouchSensor.h b/source/gameengine/Ketsji/KX_TouchSensor.h index f1a2a26e822..9781bdb3769 100644 --- a/source/gameengine/Ketsji/KX_TouchSensor.h +++ b/source/gameengine/Ketsji/KX_TouchSensor.h @@ -57,8 +57,6 @@ protected: class SCA_EventManager* m_eventmgr; class PHY_IPhysicsController* m_physCtrl; - class PHY_ResponseTable* m_responstTable; - class PHY_PhysicsController* m_responsObject; bool m_bCollision; bool m_bTriggered; @@ -86,7 +84,11 @@ public: virtual bool NewHandleCollision(void*obj1,void*obj2,const PHY_CollData* colldata); - PHY_PhysicsController* GetPhysicsController() { return m_responsObject;} + // Allows to do pre-filtering and save computation time + // obj1 = sensor physical controller, obj2 = physical controller of second object + // return value = true if collision should be checked on pair of object + virtual bool BroadPhaseFilterCollision(void*obj1,void*obj2) { return true; } + virtual bool IsPositiveTrigger() { |