fixed check for response (no static/kinematic, rather then 'active')
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user