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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygame_physics-0.0.0.tar.gz.
File metadata
- Download URL: pygame_physics-0.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc3e020f8ec611c240779d50f563acf30280980ec2e58af113fe315be4fd13d4
|
|
| MD5 |
2e60916808aaed0b9d93b0197bc7abfe
|
|
| BLAKE2b-256 |
5c6625f97fa7b7719b49199bf630a973c9c782328a231b6c13ae77a8ddbafe3d
|
File details
Details for the file pygame_physics-0.0.0-py3-none-any.whl.
File metadata
- Download URL: pygame_physics-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa15ee79c40e87d90d104214bf5a6f928b9fdaea3667e5dd31c948dfb7bd1e2
|
|
| MD5 |
6c35e0b623795f8e8e7dec7b70a1150d
|
|
| BLAKE2b-256 |
e94e6ae3efe200eefea2e3ed92a159d9c4f18fd1018e5f2f4abeb9b01c0df9bd
|