Package pymunk

pymunk is a python wrapper for the 2d physics library Chipmunk

IRC: #pymunk on irc.freenode.net

Homepage: http://code.google.com/p/pymunk/

Forum: http://www.slembcke.net/forums/viewforum.php?f=6

Submodules

pymunk.util
Contains utility functions, mainly to help with polygon creation
pymunk.vec2d

Classes

  Space
  Body
  Shape
  Circle
A circle shape defined by a radius
  Segment
A line segment shape between two points This shape is mainly intended as a static shape.
  Poly
A polygon shape
  Joint
  PinJoint
Keeps the anchor points at a set distance from one another.
  SlideJoint
Like pin joints, but have a minimum and maximum distance.
  PivotJoint
Simply allow two objects to pivot about a single point.
  GrooveJoint
Similar to a pivot joint, but one of the anchors is on a linear slide instead of being fixed.
  Contact
  Arbiter
Class for tracking collisions between shapes.

Functions

  init_pymunk()
Call this method to initialize pymunk
  moment_for_circle(mass, inner_radius, outer_radius, offset)
Calculate the moment of inertia for a circle
  moment_for_poly(mass, vertices, offset)
Calculate the moment of inertia for a polygon
  reset_shapeid_counter()

Variables

  version = '0.8'
The release version of this pymunk installation
  inf = 1e+100
Infinity that can be passed as mass or inertia to Body

Variables Details

version

The release version of this pymunk installation

Valid only if pymunk was installed from a source or binary distribution (i.e. not in a checked-out copy from svn).

Value:
'0.8'

inf

Infinity that can be passed as mass or inertia to Body

Use this as mass and inertia when you need to create a static body.

Value:
1e+100