Radar/Near sensor performance problem fixed
[blender-staging.git] / source / gameengine / Ketsji / KX_ConvertPhysicsObjects.cpp
index 6ea13f3a5e3cc520bec3158611c9b821046ee49c..5de2ab1b2dccbd10d7422125c4067caffb36b794 100644 (file)
@@ -1123,7 +1123,9 @@ void      KX_ConvertBulletObject( class   KX_GameObject* gameobj,
        ci.m_angularDamping = 1.f - shapeprops->m_ang_drag;
        //need a bit of damping, else system doesn't behave well
        ci.m_inertiaFactor = shapeprops->m_inertia/0.4f;//defaults to 0.4, don't want to change behaviour
-       
+       ci.m_collisionFilterGroup = (isbulletdyna) ? short(CcdConstructionInfo::DefaultFilter) : short(CcdConstructionInfo::StaticFilter);
+       ci.m_collisionFilterMask = (isbulletdyna) ? short(CcdConstructionInfo::AllFilter) : short(CcdConstructionInfo::AllFilter ^ CcdConstructionInfo::StaticFilter);
+
        KX_BulletPhysicsController* physicscontroller = new KX_BulletPhysicsController(ci,isbulletdyna);
 
        if (objprop->m_in_active_layer)