From 6be5d00c954311e785c365df36d7957d9f6eaf34 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Fri, 29 Aug 2008 04:35:26 +0000 Subject: [PATCH] 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 --- src/BulletDynamics/Vehicle/btRaycastVehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp b/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp index 659b3ae8e..23e223506 100644 --- a/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp +++ b/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp @@ -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;