NOC – Week 1: P5 Basics – Keyin Wu(Quoey)

Here is the link for my week01 assignment: 

Basically, I wanted to simulate the condition where a ball is influenced by gravity and this is my original sketch.

Later, I added the speed on x-axis to make the parabolic motion. And the xspeed of the ball is related to the distance between the mouse position and the ball position. When the mouse gets closer to the ball, it is like the force is getting closer so that the xspeed will grow bigger, and vice versa. When the ball touches the left or right boundary of the canvas, a red rectangle will appear to give a warning and the ball will reappear at the middle of the canvas. The movement will continue until the ball disappears at the bottom as time goes by. 

And here is the demo.

Leave a Reply