libGdx setting a trajektory for a object to move

Can i predefine a trajetory for object to move on so that i give it the starting point and end point and then an angle or something for it to move on a curve? I tryed t o look for it but couldnt find, and what i found was to generate gravity of sorts and then apply it to the objects. Is there a way to do it whidout generating a gravity?

You could use the four basic equations of kinematics to determine the x and y position of an object relative to its velocity and the amount of time elapsed, but really, it’s much easier to just apply gravity to your objects. You simply need three vectors; [icode]Vector2 position[/icode], [icode]Vector2 velocity[/icode], and [icode]Vector2 acceleration[/icode]. Set the y component of the acceleration vector to your gravity value (I usually use -10) and the x component to 0. Then set the x and y components of the velocity vector to the speed of your object. In your update method or loop, add the acceleration to the velocity, then add the velocity to the position, ex; [icode]velocity.add(acceleration)[/icode] and [icode]position.add(velocity)[/icode].

If you have an angle instead of x and y components for your velocity, you could get the normalized x and y components of the angle with some trig then multiply them by how fast you want your object to move: [icode]x = cos(angle) * xSpeed[/icode] and [icode]y = sin(angle) * ySpeed[/icode]

With this bit of simple physics, your object will move on a parabolic curve. Hope this helps!

Acceleration suits quite well. I just need to keep track of the object runtime and wit that i can swich accelerations to gwt te trajectory i want.