fixed check for response (no static/kinematic, rather then 'active')

This commit is contained in:
ejcoumans committed 2006-10-21 16:34:36 +00:00
1 parent 289c5ca7fe
commit e2093823ff
1 file changed
+2 -1
@@ -236,8 +236,9 @@ bool btCollisionDispatcher::needsResponse(btCollisionObject* body0,btCollisionOb
//here you can do filtering
bool hasResponse =
(body0->hasContactResponse() && body1->hasContactResponse());
//no response between two static/kinematic bodies:
hasResponse = hasResponse &&
(body0->IsActive() || body1->IsActive());
((!body0->isStaticOrKinematicObject()) ||(! body1->isStaticOrKinematicObject()));
return hasResponse;
}