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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user