How to make an object move in the path of an arc?
问题 I'm making a game where there should be a robot throwing ball-shaped objects at another robot. The balls thrown should fly in the shape of a symmetrical arc. Pretty sure the math-word for this is a parabola. Both robots are on the x axis. How can I implement such a thing in my game? I tried different approaches, none worked. The current system of moving things in my game, is like so: Every object has x and y co-ordinates (variables), and dx and dy variables. Every object has a move() method,