Slide bar to modulate friction or gravity. Left Mouse Button to pull objects. The further your mouse pointer is from the ball when you click, the faster it moves.
Inertia is a word that means to not change. Inertia is also Newton's law that states that an object will not accelerate unless another force acts apron it. This program demonstrates how this works by allowing you to modulate outside forces, also known as friction to see what happens. It also allows you to add additional forces when you click with your mouse. For some reason the only variation of the part of the program that tells how the ball bounces off the wall is the following, Y is the speed in the Y direction. (Also works in X direction.) (Y-(Y*2)/(7/8) If anyone could look at my code and tell me why that would be helpful.