Thread: Car physics?
View Single Post
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 07-17-2012, 03:31 AM

I don't have time to investigate now, but here are my initial thoughts:
1.That game doesn't have very realistic physics.
2.When you turn the game seems to: turn your car, adjust the camera to stay behind the car, and tip the car very slightly.
3.In reality your car would also keep moving in the original direction proportional to your speed.

I suggest copying these actions (3) optional, depending on what you want, and set a variable world.speed.

You will also need to have acceleration. One way to do this is to have an event like:

While the key 'w' is pressed
Begin: None
During: if world.speed < 100
World.speed = world.speed times .001 +0.1

End: None

You will want to have an infinite loop throughout your game something like:

While true
Car.move forward world.speed
if world.speed > 0.5
world.speed = 0
Else: world.speed = world.speed/1.11

You can adjust these numbers to whatever. Hope this helps you.
   
Reply With Quote