Hi,
I have a racing car viewed from the top and using playerCar:setLinearVelocity to make it go forward (thanks Danny).
Now if I rotate it left/right I want it to go in that direction but can’t work out the calculation.
I thought the physics engine would handle this automatically but can’t seem to find a physics rotate type command. At the moment am changing the playerCar.rotation property.
I have created a spreadsheet to try and get the calculation right but can’t get it exact. I might get it working from 0 to 90 degrees but then it won’t work for other rotations.
Am sure there must be a simple solution for this but I have searched and can’t seem to find one.
Dave [import]uid: 117617 topic_id: 24375 reply_id: 324375[/import]
[import]uid: 84637 topic_id: 24375 reply_id: 98494[/import]