diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.cpp b/examples/ExampleBrowser/OpenGLGuiHelper.cpp index 5ab2e547f..22dad40ea 100644 --- a/examples/ExampleBrowser/OpenGLGuiHelper.cpp +++ b/examples/ExampleBrowser/OpenGLGuiHelper.cpp @@ -629,12 +629,13 @@ void OpenGLGuiHelper::createCollisionShapeGraphicsObject(btCollisionShape* colli textured_detailed_sphere_vertices[i*9+1], textured_detailed_sphere_vertices[i*9+2]); - btVector3 trVer = compound->getChildTransform(0)*(radiusScale*vert); + btVector3 trVer = (radiusScale*vert); if (trVer[up]>0) trVer[up]+=halfHeight; else trVer[up]-=halfHeight; + trVer = compound->getChildTransform(0)*trVer; transformedVertices[i*9+0] = trVer[0]; transformedVertices[i*9+1] = trVer[1];