drive a simple wheel : questions of brake and motor

kidcdf

25-01-2008 05:58:32

car.Wheel = static_cast<Wheel*>(car.Body->addShape(new WheelShape(0.5,"offset:0 -0.1 0"))); //car.Body.Mass = 1;

//framestart

//forward
car.Wheel->setMotorTorque(100);

//backward
car.Wheel->setMotorTorque(-100);

//brake
car.Wheel->setBrakeTorque(2000);


once it brake,it could never move again.

kidcdf

25-01-2008 09:17:25

does anyone can share your experience of using wheel?
simple codes is appreciated! :)

betajaen

25-01-2008 10:53:21

The car has fallen asleep, you have to wake it up again.