Source

pygame / include / pgphysics.h

Author Commit Message Labels Comments Date
marcus
Removed joint->SolveConstraintPosition as it's superfluous. Renamed joint->SolveConstraintVelocity to joint->SolveConstraints. Added joint doc strings. Limited joint nachors to the body shapes.
Branches
physics
marcus
Added radians<->degrees conversion methods. Body.rotation and Body.angular_velocity now take degrees as values. Fixed shape inertia calculation on setting a new body mass.
Branches
physics
marcus
Bodies now require a shape on creation. Disallowed changing a body shape Disallowed own shape implementations for now.
Branches
physics
marcus
Wrapped Joint function pointers to allow python inheritance. Added C API for revolute joints. Minor warning fixes.
Branches
physics
minz
Add a new test case(long chain test),see test4.py Solve Rotation bug(just a var name mistake) Add a new joint(RevoluteJoint),can't work properly now, the main bug of it is no collision exception list in framework,should be added in future.
Branches
physics
minz
Add damping method which can make simulation look stable
Branches
physics
marcus
Added body shape setter and GetGlobalPos C API. Added type checks to C API functions. Added PyDistanceJoint_SetAnchors C API. Removed distance setter from DistanceJoint class. Renamed PyRectShape to PyRectShapeObject. Fixed internal PyJoint_Check and PyDistanceJoint_Check defines. Fixed some ref count issues. Fixed C tests to use the Python C API. Added Makefile for C tests.
Branches
physics
marcus
Added copyright notice to all source files. Added first C API version, update installer to install the C header. This breaks the current C tests, though. Body class uses a shape attribute rather than bind_rect_shape() now. Renamed get_point_list() to get_points(). Renamed vector2 functions to match C API naming PyVector2_*. Made structures C99 compatible. Fixed shape and joint inheritances (hopefully).
Branches
physics