diff --git a/OdeWorld.cc b/OdeWorld.cc index 4acc2f0..9e25612 100644 --- a/OdeWorld.cc +++ b/OdeWorld.cc @@ -243,6 +243,13 @@ void OdeWorld::setupGeom(const std::string & name, bool static_data, dMassAdd(&origmass, mass); dBodySetMass(*body, &origmass); } + else + { + dMatrix3 rot; + dRFromEulerAngles(rot, rotx, roty, rotz); + dGeomSetRotation(geom, rot); + dGeomSetPosition(geom, locx, locy, locz); + } } /* push an OpenGL matrix onto the matrix stack for a given