Skip to main content

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
)

Metadata

Release files for pygame-physics 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygame-physics 0.0.0
File Size Uploaded
pygame_physics-0.0.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygame-physics 0.0.0
File Interpreter ABI Platform
pygame_physics-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / pygame_physics-0.0.0.tar.gz

Download URL pygame_physics-0.0.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bc3e020f8ec611c240779d50f563acf30280980ec2e58af113fe315be4fd13d4
BLAKE2b-256 checksum
How to use checksums
5c6625f97fa7b7719b49199bf630a973c9c782328a231b6c13ae77a8ddbafe3d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pygame_physics-0.0.0-py3-none-any.whl

Download URL pygame_physics-0.0.0-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fa15ee79c40e87d90d104214bf5a6f928b9fdaea3667e5dd31c948dfb7bd1e2
BLAKE2b-256 checksum
How to use checksums
e94e6ae3efe200eefea2e3ed92a159d9c4f18fd1018e5f2f4abeb9b01c0df9bd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page