Gravity pulls the ball towards the bottom of the area! But you can use the "up" key to fire a "thruster" on the bottom of the ball. Notice that the ball has inertia ... ! This project is like the "2D Gravity Ball" project except that I have moved the force calculations inside of a Block structure.
This is a simple movement demonstration project that uses Newton's 1st and 2nd laws of motion to compute the movements of a ball. Gravity and the "thruster" are implemented as *forces* and then the forces are used to calculate accelerations, changes in velocities, and changes in positions.