I would like to calculate position of physics body after some time because of predicting shots trajectory in my game.
I found some great answer here where Iter Ator provides equation to calculate actual velocity of body after time, provided time, starting velocity and linear dumping but no gravity. I was able to integrate this solution to get distance traveled in time equation. Problem is that this doesnt take gravity into account.
There is also this tutorial that has many information about predicting physics body trajectory but doesnt take linear dumping into account at all.
What I would love to have is combined single equation that covers both linear dumping AND gravity to predict Box2d physics body actual velocity/position but math is too hard for me :(.
Problem seems to be that physics body velocity is both accelerated by gravity and dumped at the same time.