Gravity with predetermined destination
问题 I am using gravity in a 2d environment for my game. The objects I use in my game all have x and y coordinates, they can be "thrown" into a level, meaning instantiated, then given a specific origin location and then given new coordinates each frame with the following gravity: public void throwObject(float delta) { setX(getX() + velocity.x * delta); setY(getY() + velocity.y * delta); velocity.y += gravity.y * delta; } with the following: Vector2 GRAVITY = new Vector2(0, -10); From a given