Dino
03-11-2003, 07:47 AM
Im trying to write a driving game. I have a very simple turn and go system going, but its pretty bland. I want to add some sort of physics that would require the driver to "drift" around the corners.
First I tried lagging the rotation behind what the user controlled, but it wouldnt work when the angle went from -180 to 180. If anyone knows maybe i can get this to work.
Otherwise I was going to play with xvelocity and yvelocity as variables that dictate where the car goes. and that the velocity is controlled by acceleration, which the user directly controlls.
but i havent got that working well either.
So if anyone has any ideas, they are much appreciated.
Thanks.
First I tried lagging the rotation behind what the user controlled, but it wouldnt work when the angle went from -180 to 180. If anyone knows maybe i can get this to work.
Otherwise I was going to play with xvelocity and yvelocity as variables that dictate where the car goes. and that the velocity is controlled by acceleration, which the user directly controlls.
but i havent got that working well either.
So if anyone has any ideas, they are much appreciated.
Thanks.