Skip to content

c-m-w/physics-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

physics-simulator

how-to

  • click a particle to select it
  • drag an object to change its position
  • shift-drag an object to change its initial velocity
  • click the canvas to remove the current particle selection
  • press the gear icon with a particle (the canvas) selected to edit the particle properties (background fields)
    • the background field editor can use three parameters: $x$, $y$, $v_x$* (v_x), $v_y$* (v_y), and $t$ in the field calculation
    • $x$ and $y$ are the positions of the particle
    • $v_x$ and $v_y$ are the velocities of the particle
    • $t$ is the time since simulation has begun
  • press the play/stop button to play/stop the simulation
  • levels can be loaded and saved after being created using the buttons in the header of the simulator

(*it is technically unphysical for a gravitational or electric field to be velocity-dependent, but it is a neat feature)

demos

a critically dampened harmonic oscillator (top) and a non-isotropic harmonic oscillator in two dimensions (bottom)

many small-mass bodies (e.g., planets) orbiting a central highly massive body (e.g., the sun)

screenshots

title screen

simulator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published