Files
pygame-physics-opus5.5/src/sandbox/physics/__init__.py
T
2026-09-24 15:45:31 +02:00

37 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Pygame-freie 2D-Physik-Engine.
Die Physik verwendet ausschließlich das Standardmodul ``math`` (plus ``typing`` und
``dataclasses`` für Typangaben und Datenstrukturen). Ein Architektur-Test stellt sicher,
dass hier nie pygame oder eine andere Bibliothek importiert wird.
Wichtigste Bausteine:
* :class:`Vector2` – eigene Vektorklasse.
* :class:`Circle`, :class:`Box`, :class:`HalfPlane` – Formen.
* :class:`Body`, :class:`Material` – starre Körper.
* :class:`World` – verwaltet Körper und führt Simulationsschritte aus.
* :class:`FixedTimestep` – übersetzt Frame-Zeiten in feste Physikschritte.
"""
from sandbox.physics.body import Body, Material
from sandbox.physics.collision import Contact, collide
from sandbox.physics.shapes import Box, Circle, HalfPlane, Shape
from sandbox.physics.timestep import FixedTimestep
from sandbox.physics.vector import ZERO, Vector2
from sandbox.physics.world import World
__all__ = [
"ZERO",
"Body",
"Box",
"Circle",
"Contact",
"FixedTimestep",
"HalfPlane",
"Material",
"Shape",
"Vector2",
"World",
"collide",
]