Hi,

I need help trying to understand how to implement gravity in game.

I think i understand the concept of this derivatives

1. Position Vector. position of an object

2. Velocity Vector . change in position over time.

3. acceleration is change in velocity over time.

My problem is how do implement gravity and force into the game?

I know the position of the player.

I know the direction it is facing by using sin and cos thetha..

can i not use the the direction vector as my velocity? That is one place in which i am confused. How do i use the velocity vector to move in the direction in which i am facing?

How do i get the acceleration of the player:

force = mass * acceleration;

acceleration = force/mass;

do i just set mass and force to be a random value?

Can someone please clarify this in a simple manner.

And if velocity is the change in position over time? What is the use of speed?

Thanks in advance.

Eman