Bouncing ball - low level style

Hi,

Here’s a bouncing ball without using the Curve node so that the vectors location and velocity can be used and seen in the composition. There is symmetry within my composition which suggests that it could be simplified. Any help or improvements appreciated.

Algorithm:

  1. Start by applying a x and y velocity to the ball
  2. If the ball is outside the bounds of the window then flip its direction. I have added a mechanism to stop the ball getting stuck at the edges - the attached composition has comments to help.

bouncing_ball4.vuo (14.1 KB)

4 Likes

Cool. Challenge: place a rectangle “barrier” in the scene. :-)

1 Like

Hehe, good job, well done :+1:

1 Like