Answer by Jinbom Heo for How can I calculate the future position of my moving...
@Richard Byron explained well and gave a well-made sample code. I think it's better to add additional information about the basic math.I leaved out the wall collision.Sorry for bad hand writing an...
View ArticleAnswer by Richard Byron for How can I calculate the future position of my...
Like Pieter mentioned, you can use 1D kinetic equation for height, which in your case will come to:\$h = p + vt + 0.5at^2\$where a is the acceleration due to gravity. You can then use the quadratic...
View ArticleHow can I calculate the future position of my moving object?
I'm relatively new to games development and I have a 2D game where the playing area is an enclosed rectangle with width w and infinite height. In the playing area there is a ball. A gravity force of...
View Article
More Pages to Explore .....