Quantcast
Channel: How can I calculate the future position of my moving object? - Game Development Stack Exchange
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

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 Article



Answer 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 Article

Image may be NSFW.
Clik here to view.

How 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
Browsing latest articles
Browse All 3 View Live




Latest Images