Skip to content

jason-tung/physics_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-Body Inelastic Collisions and Gravity

website here

video here

what is this

click and drag to create balls with the initial velocity represented by the black arrow

hit go to run the simulation once youve populated the screen with some number of bodies

the interactions that proceed will either be completely inelastic collisions or gravity depending on the mode selected in the upper left

further instructions/specifications provided on the site.

both simulations are pausable and resumable with the pause/resume buttons.

the mass of each particle will be set by taking the value of the mass input on the upper right prior to creating the particle.

every particle has some set of tracked variables displayed in a table on the right.

limitations

firstly, it is very hard to design a website that perfectly fits on every monitor, so should you find yourself missing elements because your monitor is not wide enough, there will be a scrollbar at the bottom to see the other elements (probably will be table values, if anything)

gravity vectors are absolutely massive because of how it scales with r^2. I have to freeze the balls once they collide in the gravity simulation because otherwise they'd shoot into infinity due to the limitations of what a bound is in SVG/JS.

the simulations also somewhat break if you move the mouse of of the canvas--seek trouble and you'll find it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors