bnpla
- 3
- 0
I'm tyring to code an engine that simply adds gravity to the world.
I know that gravity is a constant value added to the velocity of an object on each second, like this:
Velocity = Vi * t + 0.5 * G * T2
What I'm tyring to figure out, is the distance traveled of an object falling from any point in time, without having the values of the initial time or initial velocity...
Let's say i drop a coin from some distance to the floor. Now let's say i stop the time at some X seconds. I want to know how much the coin will move in the Y axis only knowing the velocity of the coin at that particular time and nothing else.
I don't want to know the total distance since i dropped the coin. I want to know the distance that the coin will travel starting from the moment i paused the fall to 1 second forward in time.
I know that gravity is a constant value added to the velocity of an object on each second, like this:
Velocity = Vi * t + 0.5 * G * T2
What I'm tyring to figure out, is the distance traveled of an object falling from any point in time, without having the values of the initial time or initial velocity...
Let's say i drop a coin from some distance to the floor. Now let's say i stop the time at some X seconds. I want to know how much the coin will move in the Y axis only knowing the velocity of the coin at that particular time and nothing else.
I don't want to know the total distance since i dropped the coin. I want to know the distance that the coin will travel starting from the moment i paused the fall to 1 second forward in time.