Yes for the 1,000,000th time!!

Blitz3D Forums/Blitz3D Programming/Yes for the 1,000,000th time!!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ok, without giving you the answer it's best to think of it in these terms:

you need a few variables

1. the car
2. the amount of thrust when key is pressed
3. the cars velocity
4. the friction coefficient that will slow the car down

Friction = .99

if key is down then thrust = 0.01

car_velocity = car_velocity + thrust

car_velocity = car_velocity * friction

add the car velocity to the car position

in b3d you can just rotateentity and moventity. the sin/cos is done for you