python ball physics simulation
问题 I have seen the great tutorial by Peter Colling Ridge on http://www.petercollingridge.co.uk/pygame-physics-simulation/ and I am extending the PyParticles script The code is available on the site(for free), I am using PyParticles4.py Classes used in the tutorial The Particle Class Circular 2d objects with radius,mass,velocity,location The Spring Class A spring that binds 2 objects (Particles) and uses the Hooke's law (F = -kx) to determine the interaction between them The Environment Class The