https://github.com/intrepidcoder/physics-simulation
A collection of interactive physics simulations.
https://github.com/intrepidcoder/physics-simulation
Last synced: 9 months ago
JSON representation
A collection of interactive physics simulations.
- Host: GitHub
- URL: https://github.com/intrepidcoder/physics-simulation
- Owner: intrepidcoder
- License: mit
- Created: 2016-02-06T16:19:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-24T14:40:33.000Z (almost 10 years ago)
- Last Synced: 2025-03-15T11:12:02.160Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://intrepidcoder.github.io/physics-simulation/
- Size: 121 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# physics-simulation
A collection of interactive physics simulations.
Run online at https://intrepidcoder.github.io/physics-simulation/
## [Elastic Collision][1]
Simulates an elastic collision between two particles.
Directions: Press `Start` to run the animation. Press `Stop` to pause and `Start` to restart. To reset the particles for another collision, press `Reset`. Change the mass and initial velocity of the particles if desired, and press `Start` to run with the updated settings. Click and drag with the mouse to rotate the view, scroll to zoom, and right-click and drag or use the arrow keys to pan around.
## [Thin Lens][2]
Draws the ray diagram for a thin converging or diverging lens.
The diagram shows three principal rays originating from the object (black arrow): the parallel ray (blue), the vertex ray (green), and the focal ray (red). The image is shown as another black arrow.
Actual light rays are shown as solid lines and extended rays are shown as dotted lines. The diagram also shows the optic axis (dashed gray line), vertex (center point), focal points (middle point on each side), and center of curvature (outside point on each side) of the lens.
Directions: To move the object, click anywhere to the left of the lens or use the input boxes to set the object's height and distance from the vertex. Choose the lens type (converging or diverging) by selecting the corresponding button and change the focal length of the lens.
[1]: https://intrepidcoder.github.io/physics-simulation/elastic-collision.html "Elastic Collision"
[2]: https://intrepidcoder.github.io/physics-simulation/thin-lens.html "Thin Lens"