assignment second week

For this assignment I did:

  • Create an example where instead of objects bouncing off the edge of the wall, an invisible force pushes back on the objects to keep them in the window. Can you weight the force according to how far the object is from an edge, i.e. the closer it is, the stronger the force?

My first try was using a rectangle smaller than the screen and add a force when the particle was close to this edges, in order to keep it inside.

At the end what I did is create rebound forces of wind and gravity. And depending on the distance of the edge a percentage of wind, gravity and the rebound forces will be apply to the particle.

heres a video

 

Leave a Reply