1. pygame
  2. Untitled project
  3. pygame

Source

pygame / src / pgBodyObject.c

Author Commit Message Date Builds
minz
add damping coefficient python interface add test5.py and Readme_Test_List.txt
Branches
physics
marcus
Added python docs for the Body.
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
Minor doc changes. Renamed body.angle_velocity to body.angular_velocity.
Branches
physics
marcus
Wrapped Joint function pointers to allow python inheritance. Added C API for revolute joints. Minor warning fixes.
Branches
physics
minz
change some little bugs
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
marcus
Limited body restitution to a range of [0,1]. Limited body friction to [0,inf). Limited world step time to [0, inf). Added python inheritance support to shapes for AABB collisions.
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
marcus
Fixed reference counts. Fixed value assignment for joint.distance
Branches
physics
marcus
Fixed tuple assignments for bodies. world.gravity now takes a tuple. Fixed output list for points.
Branches
physics
minz
Add joint pygame render wrapper stuff.
Branches
physics
minz
Joint arbitrary anchor algorithm, some changes of simulation methods.
Branches
physics
marcus
Use getter/setter implemenations instead of direct member access in Body class
Branches
physics
marcus
Changed first body attributes to use x,y tuples instead of complex values.
Branches
physics
marcus
Fixed various gcc warnings. Removed OpenGL tests. Changed structure fields and variables to be PyObjects, not specific types.
Branches
physics
minz
free anchors of joints algorithm are added, it's not finished, split impulse method will be added for position correction
Branches
physics
minz
python wrapping: add shape object, move get_point_list to body object
Branches
physics
minz
fixed some bugs.
Branches
physics
minz
resovle some bugs.
Branches
physics
minz
a python memory bug has been fixed, test1.py can run now
Branches
physics
minz
Branches
physics
minz
Branches
physics
minz
solve "GetPointList" python function bug
Branches
physics
minz
Branches
physics
minz
collision is nearly right(needing position correction)
Branches
physics
minz
correct some bugs
Branches
physics
  1. Prev
  2. 1
  3. 2
  4. Next