llamaman58
21-04-2008 11:43:58
I have a world that's a trimesh geometry. If I make BoxGeometry's the body stays on top of the trimesh, but being a box, isn't very mobile.
So, I've tried to use a SphereGeometry instead, but when I do, the body clips through my floor, off into infinity. Any idea why this is happening?
The relevant line changes from
geom = (OgreOde::Geometry*)new OgreOde::BoxGeometry(size, this->mWorld, this->mSpace);
to
geom = (OgreOde::Geometry*)new OgreOde::SphereGeometry(size.y*5, this->mWorld, this->mSpace);
I'm using the Ogre SDK, and the current versions of OgreODE and ODE.
So, I've tried to use a SphereGeometry instead, but when I do, the body clips through my floor, off into infinity. Any idea why this is happening?
The relevant line changes from
geom = (OgreOde::Geometry*)new OgreOde::BoxGeometry(size, this->mWorld, this->mSpace);
to
geom = (OgreOde::Geometry*)new OgreOde::SphereGeometry(size.y*5, this->mWorld, this->mSpace);
I'm using the Ogre SDK, and the current versions of OgreODE and ODE.