CompressedImageData:getWidth

CompressedImageData:getWidth Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width of the CompressedImageData. Function Synopsis width = CompressedImageData:getWidth( ) Arguments None. Returns number width The width of the CompressedImageData. Function Synopsis width = CompressedImageData:getWidth( level ) Arguments number level A mipmap level. Must be in the range of [1, CompressedImageData:getMipmapCount()]. Returns number width The width

Contact:getChildren

Contact:getChildren Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the child indices of the shapes of the two colliding fixtures. For ChainShapes, an index of 1 is the first edge in the chain. Used together with Fixture:rayCast or ChainShape:getChildEdge. Function Synopsis indexA, indexB = Contact:getChildren( ) Arguments None. Returns number indexA The child index of the first fixture's shape. number indexB The child index of the second fixture's s

Contact:getFixtures

Contact:getFixtures Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the two Fixtures that hold the shapes that are in contact. Function Synopsis fixtureA, fixtureB = Contact:getFixtures( ) Arguments None. Returns Fixture fixtureA The first Fixture. Fixture fixtureB The second Fixture. See Also Contact

Contact:getFriction

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

Contact:getNormal

Contact:getNormal Get the normal vector between two shapes that are in contact. This function returns the coordinates of a unit vector that points from the first shape to the second. Function Synopsis nx, ny = Contact:getNormal( ) Arguments None. Returns number nx The x component of the normal vector. number ny The y component of the normal vector. See Also Contact

Contact:getPosition

Contact:getPosition Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the location of the contact point between two shapes. Function Synopsis cx, cy = Contact:getPosition( ) Arguments None. Returns number cx The x coordinate of the contact point. number cy The y coordinate of the contact point. 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

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: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: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