A way to manage physics of objects in pygame
Project description
A simple way to manage physics in pygame.
The Physics() object contains all the info you need.
p = Physics( # rect is a pygame.Rect object that represents the object on screen rect, # All of these values are vectors (x, y) where the x/y represent pixels per second initVelocity=(0, 0), initAcceleration=(0, 0), initAngularVelocity=0, initAngularAcceleration=0, friction=0, # friction in pixels per second (for both x and y directions) angularFriction=0, # degrees per second )
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygame_physics-0.0.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for pygame_physics-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fa15ee79c40e87d90d104214bf5a6f928b9fdaea3667e5dd31c948dfb7bd1e2 |
|
MD5 | 6c35e0b623795f8e8e7dec7b70a1150d |
|
BLAKE2b-256 | e94e6ae3efe200eefea2e3ed92a159d9c4f18fd1018e5f2f4abeb9b01c0df9bd |