forked from mirror/openmw-tes3mp
Doors no longer get hindered by actors that have collision disabled
This commit is contained in:
parent
04b90b7d14
commit
aa555b3086
1 changed files with 5 additions and 2 deletions
|
@ -531,8 +531,10 @@ namespace Physic
|
|||
const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1)
|
||||
{
|
||||
const RigidBody* body = dynamic_cast<const RigidBody*>(colObj0Wrap->m_collisionObject);
|
||||
if (body)
|
||||
if (body && !(colObj0Wrap->m_collisionObject->getBroadphaseHandle()->m_collisionFilterGroup
|
||||
& CollisionType_Raycasting))
|
||||
mResult.push_back(body->mName);
|
||||
|
||||
return 0.f;
|
||||
}
|
||||
#else
|
||||
|
@ -540,7 +542,8 @@ namespace Physic
|
|||
const btCollisionObject* col1, int partId1, int index1)
|
||||
{
|
||||
const RigidBody* body = dynamic_cast<const RigidBody*>(col0);
|
||||
if (body)
|
||||
if (body && !(col0->getBroadphaseHandle()->m_collisionFilterGroup
|
||||
& CollisionType_Raycasting))
|
||||
mResult.push_back(body->mName);
|
||||
return 0.f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue