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

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

Fixture:getShape

Fixture:getShape Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the shape of the fixture. This shape is a reference to the actual data used in the simulation. It's possible to change its values between timesteps. Do not call any functions on this shape after the parent fixture has been destroyed. This shape will point to an invalid memory address and likely cause crashes if you interact further with it. Function Synopsis shape = Fixture:getShape( ) Ar

Fixture:getUserData

Fixture:getUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the Lua value associated with this fixture. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis value = Fixture:getUserData( ) Arguments None. Returns any value The Lua value associated with the fixture. See Also Fixture Fixture:setUserData

Fixture:isDestroyed

Fixture:isDestroyed Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether the Fixture is destroyed. Destroyed fixtures cannot be used. Function Synopsis destroyed = Fixture:isDestroyed( ) Arguments None. Returns boolean destroyed Whether the Fixture is destroyed. See Also Fixture Fixture:destroy