Contact

Contacts are objects created to manage collisions in worlds.

Functions

Contact:getChildrenGets the child indices of the shapes of the two colliding fixtures.Added since 0.9.0
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. Removed in 0.8.0
Contact:getPositionsReturns the contact points of the two colliding fixtures.Added since 0.8.0
Contact:getRestitutionGet the restitution between two shapes that are in contact.
Contact:getSeparationGet the separation between two shapes that are in contact. Removed in 0.8.0
Contact:getVelocityGet the linear impact velocity of a contact. Removed in 0.8.0
Contact:isEnabledReturns whether the contact is enabled.Added since 0.8.0
Contact:isTouchingReturns whether the two colliding fixtures are touching each other.Added since 0.8.0
Contact:resetFrictionResets the contact friction to the mixture value of both fixtures.Added since 0.8.0
Contact:resetRestitutionResets the contact restitution to the mixture value of both fixtures.Added since 0.8.0
Contact:setEnabledEnables or disables the contact.Added since 0.8.0
Contact:setFrictionSets the contact friction.Added since 0.8.0
Contact:setRestitutionSets the contact restitution.Added since 0.8.0
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

See Also


Other Languages

Personal tools