I have been looking at equations that can represent how far something travels given these three variables. Initial Velocity, Resistance, Acceleration, and Time.
The main thing I saw which was similar was a calculation for free falling and air resistance. However, the only problems which I encountered when looking at these were that they included the Gravity variable. Which kind of represents my acceleration variable in this formula. However, there is the possibility for there to be no acceleration acting upon the object, and only a resistance factor. So when I would substitute 0 it seems like the equation wouldn't work.
So there is the possibility for this formula to have 0 values for resistance acceleration. Initial velocity will most likely have a value.
For context: I am working with a game that simply has air resistance. And I am just trying to calculate distance as part of the game loop with a time factor between each loop iteration.
To add a bit more context surrounding what I went down. What I found was the when the game loop for the server and the game loop for the client was running at different speeds, it would then give the object a different velocity and location after x time because the resistance was being applied twice as fast as the client. or vise versa. So there was no real resistance applied over a T time per se. And it seemed to be happening at an interval. So I was trying to determine how far something moves, based on the time rather than each interval, so that no matter the speeds each interval is, they are in sync with the location.
I had a look at a couple of these:
But could not work out how to integrate for example, when there is no acceleration and only a resistance factor (if you were to imagine travelling in space with an air resistance in one direction, (so no gravity)).