car fall into sleep when it stops,and wheel stick forever

kidcdf

03-02-2008 06:57:07

car fall into sleep when it stops,and wheel stuck forever,
I use body->SetLinerVelocity to give the car a speed,and wheel works!
but when the car stop,it just fall asleep, motor->setAcceleration and wheelset->setMotorTorgue don't work, the car stick there forever....

weak

03-02-2008 07:16:41

// make sure the car doesn't fall asleep
m_car->setSleepEnergyThreshold(0.0);

danharibo

04-02-2008 16:17:02

You could use the "wake" function (I think that's what it's called, i don't have NxOgre here) every time you move the car, that way it would sleep, but move when you need it to.

kidcdf

05-02-2008 08:21:15

You could use the "wake" function (I think that's what it's called, i don't have NxOgre here) every time you move the car, that way it would sleep, but move when you need it to.
it doesnt work.
I 've used wakeup in car control loop,it still sleep