From 09b50cb3e8e34da35d2cec5f66f471ed02585f0e Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 7 Oct 2009 00:23:21 +0000 Subject: [PATCH] trying to get position to work git-svn-id: svn://anubis/misc/OdeWorld@159 bd8a9e45-a331-0410-811e-c64571078777 --- OdeWorld.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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