I would like to receive your suggestion about this problem ...
To make it simple, I will only consider the x axis.
Draw an object at position 10 and its width is also 10 units, which moves forward 100 units per second, and due to the low frame, with each update it should move 80 units.
After calling the first update, its position is now 90, and at position 120 there is another object of the same size.
The next update will move the object to position 170. Given that I need to implement collision detection by calculating the collision before or after the update, no one will work.
Now a simple question arises ...
What to do in this case?
Do something like:
Position start = destinationPos - currentPos;
for (int i; i < start; i++)
if (IsColliding(movingObj.Position + i, staticObj))
, , , x, y, z ?
, , , , , , , .
- , elapsedTime, , , , , , .
, , ?