Khuran
10-06-2010 13:46:45
I went throught the whole mess of setting up OgreOde, and I tried to run the First Steps tutorial.
It compiles, but before rendering it throws an exception (Access violation in 0x00000004), interrupting at this line:
The whole initialising process is fine. What could it be?
Thanks
It compiles, but before rendering it throws an exception (Access violation in 0x00000004), interrupting at this line:
void addBody(SceneNode* usedsn)
{
OgreOde::Body *mBody;
OgreOde::Geometry *mGeom;
mBody = new OgreOde::Body(mWorld);
usedsn->attachObject(mBody);
Vector3 size(10.0,10.0,10.0);
OgreOde::BoxMass mMass(1,size);
mMass.setDensity(5.0,size);
mGeom = (OgreOde::Geometry*)new OgreOde::BoxGeometry(size, mWorld, mWorld->getDefaultSpace()); // <----- THIS
usedsn->setScale(size.x,size.y,size.z);
mBody->setMass(mMass);
mGeom->setBody(mBody);
The whole initialising process is fine. What could it be?
Thanks