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

This commit is contained in:
ejcoumans
2006-10-21 16:34:36 +00:00
parent 289c5ca7fe
commit e2093823ff

View File

@@ -236,8 +236,9 @@ bool btCollisionDispatcher::needsResponse(btCollisionObject* body0,btCollisionOb
//here you can do filtering //here you can do filtering
bool hasResponse = bool hasResponse =
(body0->hasContactResponse() && body1->hasContactResponse()); (body0->hasContactResponse() && body1->hasContactResponse());
//no response between two static/kinematic bodies:
hasResponse = hasResponse && hasResponse = hasResponse &&
(body0->IsActive() || body1->IsActive()); ((!body0->isStaticOrKinematicObject()) ||(! body1->isStaticOrKinematicObject()));
return hasResponse; return hasResponse;
} }