Bouncing Ball (Gravity using direction)
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.