pythonPhysics

Basic Python physics library. Must have pygame installed.

How to:

Sketon program is included.
for p in env.particles: pygame.draw.circle(screen, p.colour, (int(p.x), int(p.y)), p.size, p.thickness)

The code above is required to render particles.
import particle as p
^ TO import

`env.addParticle(x=5, y=10, speed=1.5, angle=0.8, size=4, mass=1000)`

^ Creating particle

GitHub

View Github