Home | Trees | Indices | Help |
|
---|
|
object --+ | Body
A rigid body
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Static Methods | |||
|
|||
|
Properties | |
mass | |
moment | |
angle The rotation of the body. |
|
rotation_vector | |
torque | |
position | |
velocity | |
angular_velocity | |
force | |
velocity_func The velocity callback function. |
|
position_func The position callback function. |
|
Inherited from |
Method Details |
|
Default rigid body velocity integration function. Updates the velocity of the body using Euler integration. |
Default rigid body position integration function. Updates the position of the body using Euler integration. Unlike the velocity function, it's unlikely you'll want to override this function. If you do, make sure you understand it's source code (in Chipmunk) as it's an important part of the collision/joint correction process. |
|
Apply (accumulate) the force f on body at a relative offset (important!) r from the center of gravity. Both r and f are in world coordinates. |
Apply a spring force between this body and b at anchors anchr1 and anchr2 respectively. Note not solving the damping forces in the impulse solver causes problems with large damping values. There is a new constraint type DampedSpring that should be used instead.
|
Modify the velocity of the body so that it will move to the specified absolute coordinates in the next timestep. Intended for objects that are moved manually with a custom velocity integration function. |
|
|
Property Details |
moment
|
angleThe rotation of the body. Note If you get small/no changes to the angle when for example a ball is "rolling" down a slope it might be because the Circle shape attached to the body or the slope shape does not have any friction set.
|
rotation_vector
|
torque
|
position
|
velocity
|
angular_velocity
|
force
|
velocity_funcThe velocity callback function. The velocity callback function is called each time step, and can be used to set a body's velocity.
|
position_funcThe position callback function. The position callback function is called each time step and can be used to update the body's position.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 07 22:17:52 2010 | http://epydoc.sourceforge.net |