Fixture:getMassData

Fixture:getMassData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the mass, its center and the rotational inertia. Function Synopsis x, y, mass, inertia = Fixture:getMassData( ) Arguments None. Returns number x The x position of the center of mass. number y The y position of the center of mass. number mass The mass of the fixture. number inertia The rotational inertia. See Also Fixture

Fixture:getMask

Fixture:getMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns which categories this fixture should NOT collide with. Function Synopsis mask1, mask2, ... = Fixture:getMask( ) Arguments None. Returns number mask1 The first category selected by the mask. number mask2 The second category selected by the mask. See Also Fixture Fixture:setMask

Fixture:getGroupIndex

Fixture:getGroupIndex Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the group the fixture belongs to. Fixtures with the same group will always collide if the group is positive or never collide if it's negative. The group zero means no group. The groups range from -32768 to 32767. Function Synopsis group = Fixture:getGroupIndex( ) Arguments None. Returns number group The group of the fixture. See Also Fixture Fixture:setGroupIndex

Fixture:getFriction

Fixture:getFriction Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the friction of the fixture. Function Synopsis friction = Fixture:getFriction( ) Arguments None. Returns number friction The fixture friction. See Also Fixture Fixture:setFriction

Fixture:getFilterData

Fixture:getFilterData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the filter data of the fixture. Categories and masks are encoded as the bits of a 16-bit integer. Function Synopsis categories, mask, group = Fixture:getFilterData( ) Arguments None. Returns number categories The categories as an integer from 0 to 65535. number mask The mask as an integer from 0 to 65535. number group The group as an integer from -32768 to 32767. See Also Fixtu

Fixture:getDensity

Fixture:getDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the density of the fixture. Function Synopsis density = Fixture:getDensity( ) Arguments None. Returns number density The fixture density in kilograms per square meter. See Also Fixture Fixture:setDensity

Fixture:getCategory

Fixture:getCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the categories the fixture belongs to. Function Synopsis category1, category2, ... = Fixture:getCategory( ) Arguments None. Returns number category1 The first category. number category2 The second category. See Also Fixture Fixture:setCategory

Fixture:getBoundingBox

Fixture:getBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the points of the fixture bounding box. In case the fixture has multiple children a 1-based index can be specified. For example, a fixture will have multiple children with a chain shape. Function Synopsis topLeftX, topLeftY, bottomRightX, bottomRightY = Fixture:getBoundingBox( index ) Arguments number index (1) A bounding box of the fixture. Returns number topLeftX The x position

Fixture:getBody

Fixture:getBody Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the body to which the fixture is attached. Function Synopsis body = Fixture:getBody( ) Arguments None. Returns Body body The parent body. See Also Fixture

Fixture:destroy

Fixture:destroy Available since LÖVE 0.8.0 This method is not supported in earlier versions. Destroys the fixture. Function Synopsis Fixture:destroy( ) Arguments None. Returns Nothing. See Also Fixture