Difference between revisions of "Contact"

m
Line 5: Line 5:
 
| ?Description
 
| ?Description
 
}}
 
}}
 +
{{#ask: [[Category:Functions]] [[parent::Object]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
== Supertypes ==
 +
[[Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]

Revision as of 02:04, 13 February 2011

Contacts are objects created to manage collisions in worlds.

Functions

Contact:getChildrenGets the child indices of the shapes of the two colliding fixtures.
Contact:getFixturesGets the two Fixtures that hold the shapes that are in contact.
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:getPositionsReturns the contact points of the two colliding fixtures.
Contact:getRestitutionGet the restitution between two shapes that are in contact.
Contact:getSeparationGet the separation between two shapes that are in contact.
Contact:getShapesGets the two Shapess that are in contact.
Contact:getVelocityGet the linear impact velocity of a contact.
Contact:isEnabledReturns whether the contact is enabled.
Contact:isTouchingReturns whether the two colliding fixtures are touching each other.
Contact:resetFrictionResets the contact friction to the mixture value of both fixtures.
Contact:resetRestitutionResets the contact restitution to the mixture value of both fixtures.
Contact:setEnabledEnables or disables the contact.
Contact:setFrictionSets the contact friction.
Contact:setRestitutionSets the contact restitution.
World:setCallbacksSets functions to be called when shapes collide.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Object

See Also

Other Languages