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

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

CompressedImageData:getMipmapCount

CompressedImageData:getMipmapCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of mipmap levels in the CompressedImageData. The base mipmap level (original image) is included in the count. Function Synopsis mipmaps = CompressedImageData:getMipmapCount( ) Arguments None. Returns number mipmaps The number of mipmap levels stored in the CompressedImageData. Notes Mipmap filtering cannot be activated for an Image created from a CompressedI

CompressedImageData:getHeight

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

CompressedImageData:getFormat

CompressedImageData:getFormat Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the format of the CompressedImageData. Function Synopsis format = CompressedImageData:getFormat( ) Arguments None. Returns CompressedImageFormat format The format of the CompressedImageData. See Also CompressedImageData

CompressedImageData:getDimensions

CompressedImageData:getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the CompressedImageData. Function Synopsis width, height = CompressedImageData:getDimensions( ) Arguments None. Returns number width The width of the CompressedImageData. number height The height of the CompressedImageData. Function Synopsis width, height = CompressedImageData:getDimensions( level ) Arguments number level A mipmap level. Must b

CompressedData:getFormat

CompressedData:getFormat Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the compression format of the CompressedData. Function Synopsis format = CompressedData:getFormat( ) Arguments None. Returns CompressedDataFormat format The format of the CompressedData. See Also CompressedData