Contact

Contacts are objects created to manage collisions in worlds.

Functions

Contact:getChildren Gets the child indices of the shapes of the two colliding fixtures. 0.9.0
Contact:getFixtures Gets the two Fixtures that hold the shapes that are in contact. 0.9.2
Contact:getFriction Get the friction between two shapes that are in contact.
Contact:getNormal Get the normal vector between two shapes that are in contact.
Contact:getPosition Get the location of the contact point between two shapes. 0.8.0
Contact:getPositions Returns the contact points of the two colliding fixtures. 0.8.0
Contact:getRestitution Get the restitution between two shapes that are in contact.
Contact:getSeparation Get the separation between two shapes that are in contact. 0.8.0
Contact:getVelocity Get the linear impact velocity of a contact. 0.8.0
Contact:isEnabled Returns whether the contact is enabled. 0.8.0
Contact:isTouching Returns whether the two colliding fixtures are touching each other. 0.8.0
Contact:resetFriction Resets the contact friction to the mixture value of both fixtures. 0.8.0
Contact:resetRestitution Resets the contact restitution to the mixture value of both fixtures. 0.8.0
Contact:setEnabled Enables or disables the contact. 0.8.0
Contact:setFriction Sets the contact friction. 0.8.0
Contact:setRestitution Sets the contact restitution. 0.8.0
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Supertypes

See Also


Contact:setRestitution
  • References/Game Development/LÖVE/love.physics/Contact

Contact:setRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact restitution.

2025-01-10 15:47:30
Contact:resetRestitution
  • References/Game Development/LÖVE/love.physics/Contact

Contact:resetRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact restitution to the

2025-01-10 15:47:30
Contact:getFixtures
  • References/Game Development/LÖVE/love.physics/Contact

Contact:getFixtures Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the two

2025-01-10 15:47:30
Contact:setFriction
  • References/Game Development/LÖVE/love.physics/Contact

Contact:setFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact friction.

2025-01-10 15:47:30
Contact:getPositions
  • References/Game Development/LÖVE/love.physics/Contact

Contact:getPositions Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the contact points of the two colliding

2025-01-10 15:47:30
Contact:getRestitution
  • References/Game Development/LÖVE/love.physics/Contact

Contact:getRestitution Get the restitution between two shapes that are in contact. Function Synopsis

2025-01-10 15:47:30
Contact:getSeparation
  • References/Game Development/LÖVE/love.physics/Contact

Contact:getSeparation Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the separation between two shapes that

2025-01-10 15:47:30
Contact:resetFriction
  • References/Game Development/LÖVE/love.physics/Contact

Contact:resetFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact friction to the mixture

2025-01-10 15:47:30
Contact:isEnabled
  • References/Game Development/LÖVE/love.physics/Contact

Contact:isEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns whether the contact is enabled. The

2025-01-10 15:47:30
Contact:setEnabled
  • References/Game Development/LÖVE/love.physics/Contact

Contact:setEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Enables or disables the contact.

2025-01-10 15:47:30