Sign in to your account

Submission

Be sure to submit two sketches:

Requirements

Follow Along

Dreams and Plans

Implementation

Coding Conventions

Dreams and Plans

Task Needed Done: Create an interactive sketch that will simulate gravitational/magnetic forces.

Dreams (some ideas that are good to implement):

Untitled

Plans (how to implement the idea that I have chosen):

My Idea: To create a sketch that will have the objects point to the direction of my mouse (attraction)

Learning Goal: To implement the proper coding structure that I have learned in the previous lessons as well as to implement a force similar to gravitational forces (instead of gravity, it would be magnetic which is a similar concept)

Additions/Modifications (in the mover class and the sketch): Instead of having an attractor, I have made it to become the mouse itself. As for the movers, I have assigned it as sticks to demonstrate how the objects are magnetically attracted to the mouse (it will always point out to the direction of the mouse and the attraction is greater the closer the mouse is to the stick).

Notes: I have decided to stick with something simple because of the crunch week but originally I wanted to do the duet-like game in p5.js but I realized that it might not be used with gravitational/magnetic force but that idea inspired me to pursue doing a magnetic force sketch instead of a gravitational force sketch.