Skip to content

Electro-Corp/pythonPhysics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pythonPhysics

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.

How to:

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

About

Basic Python physics library.

Resources

Stars

Watchers

Forks

Packages

No packages published