Home | Trees | Indices | Help |
|
---|
|
object --+ | Shape
Base class for all the shapes.
You usually dont want to create instances of this class directly but use one of the specialized shapes instead.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
sensor A boolean value if this shape is a sensor or not. |
|
collision_type User defined collision type for the shape. |
|
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 The body this shape is attached to |
|
Inherited from |
Method Details |
|
Check if the line segment from start to end intersects the shape. Return either SegmentQueryInfo object or None |
Property Details |
sensorA boolean value if this shape is a sensor or not. Sensors only call collision callbacks, and never generate real collisions.
|
collision_typeUser defined collision type for the shape. See add_collisionpair_func function for more information on when to use this property
|
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, i.e. layers == -1
|
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. 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 resolving the collision.
|
bodyThe body this shape is attached to
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 07 22:17:52 2010 | http://epydoc.sourceforge.net |