Module CP
In: doc_dummy.rb

Chipmunk Game Dynamics. Provides fast, easy to use, robust physics.

Methods

Classes and Modules

Module CP::Joint
Module CP::Shape
Class CP::BB
Class CP::Body
Class CP::Space
Class CP::Vect

Attributes

bias_coef  [RW]  The bias coefficient used for resolving penetrations. Setting 0.0 effectively disables penetration resolution. Setting 1.0 will try to resolve the penetration in a single step. (not recommended)
collision_slop  [RW]  The maximum allowed penetration distance. Setting a non zero value helps to prevent oscilating contacts.

Public Instance methods

Accumulate forces on the given bodies by connecting a spring between the anchors. Body local coordinates are used for the anchor locations.

Calculate the moment of inertia for a circle with the given mass, inner and outer radii, and offset. offset should be a CP::Vect.

Calculate the moment of inertia for a polygon with the given mass, vertexes, and offset. verts should be an Array of CP::Vect with a counterclockwise winding, offset should be a CP::Vect.

[Validate]