Fix for [#31701] "radar causes collision" reported by Markus Rietz (afeature).
authorMitchell Stokes <mogurijin@gmail.com>
Sun, 8 Jul 2012 05:00:16 +0000 (05:00 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sun, 8 Jul 2012 05:00:16 +0000 (05:00 +0000)
The problem was that the physics shapes for the near and radar sensor were getting turned into characters because CcdConstructionInfo::m_bCharacter was defaulting to true. Now it defaults to false and is explicitly set to true for only Character physics types.

source/gameengine/Physics/Bullet/CcdPhysicsController.h

index 09afafbe0a76f3e23438f2b798016f92a0d7e071..869211ffd311457ee48542022cae90b02f321aaf 100644 (file)
@@ -267,6 +267,7 @@ struct CcdConstructionInfo
                m_bRigid(false),
                m_bSoft(false),
                m_bSensor(false),
+               m_bCharacter(false),
                m_bGimpact(false),
                m_collisionFilterGroup(DefaultFilter),
                m_collisionFilterMask(AllFilter),