Difference between revisions of "Contact"

Line 1: Line 1:
 
Contacts are objects created to manage collisions in worlds.
 
Contacts are objects created to manage collisions in worlds.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Contact]] OR [[parent::Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Contact||Object]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 17:43, 25 March 2011

Contacts are objects created to manage collisions in worlds.

Functions

Contact:getFrictionGet the friction between two shapes that are in contact.
Contact:getNormalGet the normal vector between two shapes that are in contact.
Contact:getPositionGet the location of the contact point between two shapes.
Contact:getRestitutionGet the restitution between two shapes that are in contact.
Contact:getSeparationGet the separation between two shapes that are in contact.
Contact:getVelocityGet the linear impact velocity of a contact.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
World:setCallbacksSets functions to be called when shapes collide.

Supertypes

Object

See Also


Other Languages