ljack
28-02-2008 21:07:01
I tried the code below but doesn't work... it compiles but launches visual debugger when loading the .exe ...
All help will be reli appreciated...
Body* mVehicleChassis = mScene->createBody("car.mesh", new ConvexShape("caddie.mesh"), Vector3(0,0,0), "mass: 1000");
WheelSet mWheelSet = WheelSet::createFourWheelSet(mVehicleChassis, Vector3(-0.5f, -0.1f, 1.25f), Vector3(0.5f,-0.1f,-1.25f), 0.25);
mWheelSet.addMeshes("sphere.mesh");
Motor* mMotor = new Motor("Motor", mScene, &mWheelSet.Drive);
mWheelSet.attachDriveShaft(mMotor);
All help will be reli appreciated...