Skip to content

2D web application for simulating mechanics/physics for the browser written in p5.js and Node.js.

Notifications You must be signed in to change notification settings

CamGomezDev/physics-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

physics-lab

This is a web application for simulating mechanical physics in 2D with a server written in Node.js/Express.js, and all of the graphics parts being handled by the library p5.js. The physics engine and all of the physics calculations were written by me. The main file from which all of the calculations and physics parts are being handled is public/js/main.js.

The main app can be accessed here: http://physicslab.herokuapp.com/ (doesn't work well on mobile).

To begin the interaction you must only press the buttons on the upper right like Mass or Incline and add them to the world (by clicking any part of the grid). You can toggle on thinks like gravity or the floor. Then just press Play on the bottom right. The code is not very commented.

This was done to participate on the Google Science Fair.

About

2D web application for simulating mechanics/physics for the browser written in p5.js and Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages