diff --git a/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.cpp b/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.cpp index dcdd932028..b38fce4724 100644 --- a/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.cpp +++ b/src/BulletSoftBody/btSoftMultiBodyDynamicsWorld.cpp @@ -177,6 +177,7 @@ void btSoftMultiBodyDynamicsWorld::debugDrawWorld() } } +namespace { struct btSoftSingleRayCallback : public btBroadphaseRayCallback { btVector3 m_rayFromWorld; @@ -250,6 +251,7 @@ struct btSoftSingleRayCallback : public btBroadphaseRayCallback return true; } }; +} void btSoftMultiBodyDynamicsWorld::rayTest(const btVector3& rayFromWorld, const btVector3& rayToWorld, RayResultCallback& resultCallback) const { diff --git a/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp b/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp index dc9b004a37..b3d8486c78 100644 --- a/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp +++ b/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp @@ -172,6 +172,7 @@ void btSoftRigidDynamicsWorld::debugDrawWorld() } } +namespace { struct btSoftSingleRayCallback : public btBroadphaseRayCallback { btVector3 m_rayFromWorld; @@ -245,6 +246,7 @@ struct btSoftSingleRayCallback : public btBroadphaseRayCallback return true; } }; +} void btSoftRigidDynamicsWorld::rayTest(const btVector3& rayFromWorld, const btVector3& rayToWorld, RayResultCallback& resultCallback) const {