Basic Python physics library.
Must have pygame installed.
Sketon program is included. It is skel.py
The library file that is needed to be included is particle.py
.
Sketon program is included. It is skel.py
The library file that is needed to be included is particle.py
.
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
https://electro-corp.github.io/pythonPhysics/ Website