Car movement (as seen in parking games)
Hi all..
I noticed there are a few parking games around, such as:
http://www.mousebreaker.com/games/parking3/play.php
Zurich Insurance had one as a viral/promotional gimmick which worked in a similar way - it may, of course, have been done by the same person.
To me the idea of coding a realistic vehicle movement of this type seems very complex.
I guess the "coming to a halt" idea is not dissimilar from menus that glide a little. But it's the direction that's giving me a headache - you turn the wheels from one side to the other (pivoting around the centre of the wheel) and the front of the car moves in that direction..
But it's clearly not that simple! I tried a few tests and really I couldn't work out how the whole shape of the rectangle should stay constant, let alone move in the correct direction as the car turns.. at times it looked like a squashed shape and at best it was skidding out of control sideways instead of turning!
Is there any standard code/algorithm to mimmick movement of a front wheel drive vehicle in this way? Or is it actually simpler than I realise for anyone with a brain for physics!?
All thoughts & snippets appreciated!
drew