kidcdf
24-01-2008 11:07:50
car.Wheelset = WheelSet::createFourWheelSet(car.Body,Vector3(-3,0,3),Vector3(3,0,-3),0.25);
car.Motor = new Motor("BumperCarMotor", m_nxscene, &car.Wheelset.Drive);
car.Wheelset.attachDriveShaft(car.Motor);
car.Wheelset.addMeshes("wheel.mesh");
//////////////////
if I remove these codes,my game is OK, else,it crashed at
ogre_root->startRendering(); the failure of pointer
why?
car.Motor = new Motor("BumperCarMotor", m_nxscene, &car.Wheelset.Drive);
car.Wheelset.attachDriveShaft(car.Motor);
car.Wheelset.addMeshes("wheel.mesh");
//////////////////
if I remove these codes,my game is OK, else,it crashed at
ogre_root->startRendering(); the failure of pointer
why?