Package pymunk
[frames] | no frames]

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


Version: $Id: __init__.py 203 2009-07-29 20:15:37Z vb@viblo.se $

Submodules

Classes
  Space
Spaces are the basic unit of simulation.
  Body
  Shape
Base class for all the shapes.
  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=(0, 0))
Calculate the moment of inertia for a circle
 
moment_for_poly(mass, vertices, offset=(0, 0))
Calculate the moment of inertia for a polygon
 
reset_shapeid_counter()
Variables
  version = '0.8.4'
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.4'

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