From 208f9ca8c550da17baa23e9ae1f8aff8b4d017f5 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 28 Apr 2013 15:56:09 +0200 Subject: [PATCH] Fix problem with newer (or older?) bullet version (thanks travis) --- libs/openengine/bullet/physic.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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)