Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 652 Bytes

File metadata and controls

16 lines (14 loc) · 652 Bytes

Particle Simulator based on Peter's physics simulation (http://www.petercollingridge.co.uk/pygame-physics-simulation/creating-pygame-window)

Requires Python 3.4 and Pygame 1.9.2

Run the ParticleSimulator.py script to begin the simulation.

Left click and hold a particle to grab, move, or throw it. Right click displays menu at cursor with various options.

origin/right-click-menu Hold spacebar to make the mouse cursor the center of gravity. 'W' 'S' 'E' 'D' keys change the magnitude of gravity. 'R' inverts the gravity from positive to negative 'C' stop the background from blitting each frame. 'P' pauses simulation