diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-05-29 20:55:22 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-05-29 20:55:22 +0400 |
commit | d5b27fabcc4f8289b9315248a16a22f7045d9363 (patch) | |
tree | d3bec4b898ebbf417f11d2d00e9faf116969cc67 /source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | |
parent | dd9c9efde7d8fbc2247b6c6b3d15c5c76aa787b9 (diff) |
BGE: sensor object will now have Actor filter optional: new button 'Detect Actor' in physics settings indicate if you want the sensor to detect only Actor object or all objects. This way you don't need to set the scenery to Actor to detect ground for example.
Diffstat (limited to 'source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index cdba59dd9ca..297b15a2b78 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -1186,7 +1186,7 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj, bool isActor = objprop->m_isactor; gameobj->getClientInfo()->m_type = - (isbulletsensor) ? KX_ClientObjectInfo::OBSENSOR : + (isbulletsensor) ? ((isActor) ? KX_ClientObjectInfo::OBACTORSENSOR : KX_ClientObjectInfo::OBSENSOR) : (isActor) ? KX_ClientObjectInfo::ACTOR : KX_ClientObjectInfo::STATIC; // store materialname in auxinfo, needed for touchsensors if (meshobj) |