diff --git a/libs/openengine/bullet/physic.cpp b/libs/openengine/bullet/physic.cpp index d522ebaf8..b41da093d 100644 --- a/libs/openengine/bullet/physic.cpp +++ b/libs/openengine/bullet/physic.cpp @@ -522,6 +522,15 @@ namespace Physic mResult.push_back(body->mName); 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(col0); + if (body) + mResult.push_back(body->mName); + return 0.f; + } }; std::vector PhysicEngine::getCollisions(const std::string& name)