Bouncing Ball (Gravity using direction)

remixed by Jamohyperturbopro
See inside
Notes and Credits (added by Jamohyperturbopro)

A demonstration of bouncing a sprite off other sprites as it would off the edge using [if on edge bounce] and applying gravity to the direction and velocity controlled object.
The direction of the small circle changes upon contact with the sprites, according to the law of reflection (only one is relevant in 2D), and, each timestep, velocity and direction are changed according to that and gravity. When the ball bounces, it loses speed according to resistance.

Firstly you'll want to turn the velocity down.

Drag the objects arround. Press R and click to rotate the line. Press E and click to resize the circle. You can hold down the mouse button to catch the ball.

Try turning off gravity or pulling up the resistance.

Resistance currently does not account for incident angle. There is currently no spin on the ball.

Shared: 20 May 2012 Modified: 20 May 2012
Favorite this project 5
Love this project 9
Total views 608
View the remix tree  3
More projects by Jamohyperturbopro