Inspiration

I remembered that optics was one of the most difficult topics for me for SAT Subject Test for Physics

What it does

Given an object, it calculates the position, and size of the object, and whether it is real or virtual image.

How we built it

I used the cloud9 IDE which I am used to from doing workshops from hack club. I used the physics equations I learned from studying the SAT to input the equations for the program.

Challenges we ran into

There were some objects that I should had created in the setup function instead of the draw function. There were also some confusion between global variables and local variables. Overall my code was very messy because of the number of variables I had to keep track of.

Accomplishments that we're proud of

I managed to create a accurate and functioning simulation for a physics concept that I struggled with.

What we learned

I learned about the difference between setup and draw function. I also learned how to more effectively use the properties of sprites such as height to shorten code. I am thankful for Max for showing me how to use console to debug.

What's next for Spherical Mirror Simulator

I would like to extend the simulator to include lens, which is the second half of optics. In addition I would like to make it more visually appealing and more flexible.

Built With

Share this project:

Updates