trying to get position to work
git-svn-id: svn://anubis/misc/OdeWorld@159 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
acb7c2ea40
commit
09b50cb3e8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user