Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 362 Bytes

File metadata and controls

14 lines (11 loc) · 362 Bytes

Mass-Spring Solids Simulation

A square sliding/residing on a slope under gravity is simulated with mass-spring elasticity potential and implicit Euler time integration. Each time step is solved by minimizing the Incremental Potential with the projected Newton method.

Dependencies

pip install numpy scipy pygame

Run

python simulator.py