trying to get position to work

git-svn-id: svn://anubis/misc/OdeWorld@159 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh committed 2009-10-07 00:23:21 +00:00
1 parent acb7c2ea40
commit 09b50cb3e8
1 file changed
+7
+7
View File
@@ -243,6 +243,13 @@ void OdeWorld::setupGeom(const std::string & name, bool static_data,
dMassAdd(&origmass, mass); dMassAdd(&origmass, mass);
dBodySetMass(*body, &origmass); 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 /* push an OpenGL matrix onto the matrix stack for a given