| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Shape
| Instance Methods | |||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
| id | |
| collision_type | |
|
group Shapes in the same non-zero group do not generate collisions. |
|
|
layers Shapes only collide if they are in the same bit-planes. |
|
|
elasticity Elasticity of the shape. |
|
|
friction Friction coefficient. |
|
|
surface_velocity The surface velocity of the object. |
|
| body | |
|
Inherited from |
|
| Method Details |
|
This method is used internally by chipmunk. If you really need it please add it as feature request on the pymunk issue tracker. Deprecated: Scheduled for deletion in pymunk 0.8.5+ |
| Property Details |
id
|
collision_type
|
groupShapes in the same non-zero group do not generate collisions. Useful when creating an object out of many shapes that you don't want to self collide. Defaults to 0
|
layersShapes only collide if they are in the same bit-planes. i.e. (a.layers & b.layers) != 0 By default, a shape occupies all 32 bit-planes.
|
elasticityElasticity of the shape. A value of 0.0 gives no bounce, while a value of 1.0 will give a 'perfect' bounce. However due to inaccuracies in the simulation using 1.0 or greater is not recommended.
|
frictionFriction coefficient. Chipmunk (and therefor pymunk) uses the Coulomb friction model, a value of 0.0 is frictionless.
|
surface_velocityThe surface velocity of the object. Useful for creating conveyor belts or players that move around. This value is only used when calculating friction, not the collision.
|
body
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Jul 26 16:03:43 2009 | http://epydoc.sourceforge.net |