mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 00:36:46 +00:00
Fix problem with newer (or older?) bullet version (thanks travis)
This commit is contained in:
parent
4ee1a6ee02
commit
208f9ca8c5
1 changed files with 9 additions and 0 deletions
|
@ -522,6 +522,15 @@ namespace Physic
|
||||||
mResult.push_back(body->mName);
|
mResult.push_back(body->mName);
|
||||||
return 0.f;
|
return 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual btScalar addSingleResult(btManifoldPoint&, const btCollisionObject* col0, int partId0, int index0,
|
||||||
|
const btCollisionObject* col1, int partId1, int index1)
|
||||||
|
{
|
||||||
|
const RigidBody* body = dynamic_cast<const RigidBody*>(col0);
|
||||||
|
if (body)
|
||||||
|
mResult.push_back(body->mName);
|
||||||
|
return 0.f;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<std::string> PhysicEngine::getCollisions(const std::string& name)
|
std::vector<std::string> PhysicEngine::getCollisions(const std::string& name)
|
||||||
|
|
Loading…
Reference in a new issue