A simulation of a sliding ball! Use arrow keys to input. ==================== How it works: Upon user input (press keys), the velocity is changed by the speed. The x and y positions of the ball are constantly being changed by the velocity. There is an x velocity, and a y velocity, independent form each other. Both velocities are constantly being multiplied by the glide factor. The velocity alone is an exponential equation, with the base the glide factor, and the dilation (a value) is the starting velocity. Thus the velocity decreases constantly because it is being multiplied by a number less than 1, therefore exponential decay (which occurs when the base is less than 1 and greater than 0).
Update 5/5/18: tracking movement & visual features added! Settings Modes: 0. Hides all variables 1. Basic Mode, allows to adjust physics variables 2. Tracking Movement 3. Display Adjustments (all visual) Understanding Variables: - XV: x velocity; every frame the current x position is changed by it - YV: y velocity; every frame the current y position is changed by it - Glide: the factor that the velocity is multiplied by (closer to 1 is higher glide because the velocity will decrease slower) - Speed: how much the velocity is changed by upon user input - Bounce?: 1 turns on bouncing; 0 turns off bouncing - Autopilot: randomly moves the ball, physics still apply - Size: size of the ball - Width/Height: actual dimensions of the ball - Mode: 1 is normal, 2 is dark mode, 3 is rainbow