pizzazhang
03-11-2010 10:47:47
Hi guys:
Sorry for my English. I decide to develop a race game using NxOgre(1.6+). I am using betajaen example of a vehicle. But he wrote it using Bloody Mess. Some codes have to change.
1.NxOgre has no class Shapes but Shape and ShapeDescription/ShapeDescriptions.
2.Now I have the boudingbox of car's body but the arguments of constructor Box() have changed.
3.The first argument of createActor() has changed. The ShapeDescription replaces shapes.
So what should I do to adapt to these changes?
Appreciate for any help!
Sorry for my English. I decide to develop a race game using NxOgre(1.6+). I am using betajaen example of a vehicle. But he wrote it using Bloody Mess. Some codes have to change.
NxOgre::Shapes shapes;
mChassisShape = new NxOgre::Box(1, 1, 1);
shapes.insert(mChassisShape);
addWheel(NxOgre::Vec3(-0.5,0,1), true, true, true);
addWheel(NxOgre::Vec3(0.5,0,1), true, true, true);
addWheel(NxOgre::Vec3(-0.5,0,-1), false, false, true);
addWheel(NxOgre::Vec3(0.5,0,-1), false, false, true);
for (unsigned int i=0;i < mWheels.size();i++)
shapes.insert(mWheels[i].mWheel);
mActor = mScene->createActor(shapes, position, description);
1.NxOgre has no class Shapes but Shape and ShapeDescription/ShapeDescriptions.
2.Now I have the boudingbox of car's body but the arguments of constructor Box() have changed.
3.The first argument of createActor() has changed. The ShapeDescription replaces shapes.
So what should I do to adapt to these changes?
Appreciate for any help!