Home | Trees | Indices | Help |
|
---|
|
object --+ | Arbiter
Arbiters are collision pairs between shapes that are used with the collision callbacks.
IMPORTANT: Because arbiters are handled by the space you should never hold onto a reference to an arbiter as you don't know when it will be destroyed! Use them within the callback where they are given to you and then forget about them or copy out the information you need from them.
Instance Methods | |||
|
|||
Inherited from |
Properties | |
contacts Information on the contact points between the objects. |
|
shapes Get the shapes in the order that they were defined in the collision handler associated with this arbiter |
|
elasticity Elasticity |
|
friction Friction |
|
surface_velocity Used for surface_v calculations, implementation may change |
|
stamp Time stamp of the arbiter. |
|
is_first_contact Returns true if this is the first step that an arbiter existed. |
|
Inherited from |
Method Details |
Initialize an Arbiter object from the Chipmunk equivalent struct and the Space. Note: You should never need to create an instance of this class directly.
|
Property Details |
contactsInformation on the contact points between the objects.
|
shapesGet the shapes in the order that they were defined in the collision handler associated with this arbiter
|
elasticityElasticity
|
frictionFriction
|
surface_velocityUsed for surface_v calculations, implementation may change
|
stampTime stamp of the arbiter. (from the space)
|
is_first_contactReturns true if this is the first step that an arbiter existed. You can use this from preSolve and postSolve to know if a collision between two shapes is new without needing to flag a boolean in your begin callback.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 07 22:17:52 2010 | http://epydoc.sourceforge.net |