Contact:setFriction

Contact:setFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact friction. Function Synopsis Contact:setFriction( friction ) Arguments number friction The contact friction. Returns Nothing. See Also Contact

Contact:setEnabled

Contact:setEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Enables or disables the contact. Function Synopsis Contact:setEnabled( enabled ) Arguments boolean enabled True to enable or false to disable. Returns Nothing. See Also Contact Contact:isEnabled

Contact:resetRestitution

Contact:resetRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact restitution to the mixture value of both fixtures. Function Synopsis Contact:resetRestitution( ) Arguments None. Returns Nothing. See Also Contact

Contact:resetFriction

Contact:resetFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact friction to the mixture value of both fixtures. Function Synopsis Contact:resetFriction( ) Arguments None. Returns Nothing. See Also Contact

Contact:isTouching

Contact:isTouching Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns whether the two colliding fixtures are touching each other. Function Synopsis touching = Contact:isTouching( ) Arguments None. Returns boolean touching True if they touch or false if not. See Also Contact

Contact:isEnabled

Contact:isEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns whether the contact is enabled. The collision will be ignored if a contact gets disabled in the post solve callback. Function Synopsis enabled = Contact:isEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also Contact Contact:setEnabled

Contact:getVelocity

Contact:getVelocity Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the linear impact velocity of a contact. Function Synopsis vx, vy = Contact:getVelocity( ) Arguments None. Returns number vx The x component of the velocity vector. number vy The y component of the velocity vector. See Also Contact

Contact:getSeparation

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 are in contact. The return value of this function is always zero or negative, with a negative value indicating overlap between the two shapes. Function Synopsis distance = Contact:getSeparation( ) Arguments None. Returns number distance The separation between the two shapes. See Also Contact

Contact:getRestitution

Contact:getRestitution Get the restitution between two shapes that are in contact. Function Synopsis restitution = Contact:getRestitution( ) Arguments None. Returns number restitution The restitution between the two shapes. See Also Contact

Contact:getPositions

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 fixtures. There can be one or two points. Function Synopsis x1, y1, x2, y2 = Contact:getPositions( ) Arguments None. Returns number x1 The x coordinate of the first contact point. number y1 The y coordinate of the first contact point. number x2 The x coordinate of the second contact point. number y2 The y coordinate of the second contact p