btRaycastVehicle or not?

webjeff
Posts: 15
Joined: Tue Dec 16, 2008 1:46 am

btRaycastVehicle or not?

Post by webjeff »

Hi,

I am trying to make a bumber buggy move around a track. It has no wheels, so right now I am just applying forces, but turning is a bit weird. I've tried just rotating it, but that doesn't work when you hit a wall and start spinning, you then rotate, but it does nothing because the physics object is still rotating.

I've also tried using SetAngularVelocity to turn, but when the buggy is at rest, it doesn't turn at all.

Should I look into btRaycastVehicle and just not render the wheels? Or am I on the right track and maybe I should use something else for turning?

Any help would be appreciated.
Thanks
Jeff.
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: btRaycastVehicle or not?

Post by sparkprime »

Is applying torque sufficient? Remember to activate the body if it might be asleep.