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:
- Start by applying a x and y velocity to the ball
- 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)