Don't collide wheels with no-contact rigid bodies (sensors/triggers),

Thanks Murphy for the report and bugfix,
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2510
This commit is contained in:
erwin.coumans
2008-08-29 04:35:26 +00:00
parent 1fbeedc7b9
commit 6be5d00c95

View File

@@ -716,7 +716,7 @@ void* btDefaultVehicleRaycaster::castRay(const btVector3& from,const btVector3&
{
btRigidBody* body = btRigidBody::upcast(rayCallback.m_collisionObject);
if (body)
if (body && body->hasContactResponse())
{
result.m_hitPointInWorld = rayCallback.m_hitPointWorld;
result.m_hitNormalInWorld = rayCallback.m_hitNormalWorld;