I am stuck in my game because I don’t know where to start as I don’t have that much experience with physics and math in games.
What I want to achieve is to make a bullet and spawn it and make it shoot up from a random location and go up like a parabolic fall physics where it curves down.
Note that, It should only move from X and Y axis so it may look like a 2D.
white-lines are the calculated trajectory
green is the bullet
target from below is the random location (within range of min and max of X axis)
highest peak target icon is the calculated location where should the bullet must start to fall.
Additionally, if you don’t want the players to be able to interfere with the cannons, you can place them in a separate collision group so that they cannot collide with it.
You would set the AssemblyLinearVelocity, as mentioned above, the AssemblyLinearVelocity is a property that allowed for the Velocity (used by the physics engine) to be set. This will cause the cannonball to be flung toward the target and fall down (due to gravity)