Fixture:isSensor

Fixture:isSensor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns whether the fixture is a sensor. Function Synopsis sensor = Fixture:isSensor( ) Arguments None. Returns boolean sensor If the fixture is a sensor. See Also Fixture Fixture:setSensor

Fixture:rayCast

Fixture:rayCast Available since LÖVE 0.8.0 This method is not supported in earlier versions. Casts a ray against the shape of the fixture and returns the surface normal vector and the line position where the ray hit. If the ray missed the shape, nil will be returned. The ray starts on the first point of the input line and goes towards the second point of the line. The fifth argument is the maximum distance the ray is going to travel as a scale factor of the input line length. The childInd

Fixture:setCategory

Fixture:setCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the categories the fixture belongs to. There can be up to 16 categories represented as a number from 1 to 16. Function Synopsis Fixture:setCategory( category1, category2, ... ) Arguments number category1 The first category. number category2 The second category. Returns Nothing. See Also Fixture Fixture:getCategory

Fixture:setDensity

Fixture:setDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the density of the fixture. Call Body:resetMassData if this needs to take effect immediately. Function Synopsis Fixture:setDensity( density ) Arguments number density The fixture density in kilograms per square meter. Returns Nothing. See Also Fixture Fixture:getDensity

Fixture:setFilterData

Fixture:setFilterData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the filter data of the fixture. Groups, categories, and mask can be used to define the collision behaviour of the fixture. If two fixtures are in the same group they either always collide if the group is positive, or never collide if it's negative. If the group is zero or they do not match, then the contact filter checks if the fixtures select a category of the other fixture with their

Fixture:setFriction

Fixture:setFriction Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the friction of the fixture. Friction determines how shapes react when they "slide" along other shapes. Low friction indicates a slippery surface, like ice, while high friction indicates a rough surface, like concrete. Range: 0.0 - 1.0. Function Synopsis Fixture:setFriction( friction ) Arguments number friction The fixture friction. Returns Nothing. See Also Fixture Fixture:getFric

Fixture:setGroupIndex

Fixture:setGroupIndex Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets 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 Fixture:setGroupIndex( group ) Arguments number group The group as an integer from -32768 to 32767. Returns Nothing. See Also Fixture Fixture:getGroupI

Fixture:setMask

Fixture:setMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Fixture:setMask works in NOT.Categories selected will NOT collide with this fixture. If you want to work as Box2d works with Mask use instead Fixture:setFilterData Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16. This fixture will NOT collide with the fixtures that are in the selected categories if the other fixture also has a category

Fixture:setRestitution

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

Fixture:setSensor

Fixture:setSensor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets whether the fixture should act as a sensor. Sensors do not cause collision responses, but the begin-contact and end-contact World callbacks will still be called for this fixture. Function Synopsis Fixture:setSensor( sensor ) Arguments boolean sensor The sensor status. Returns Nothing. See Also Fixture Fixture:isSensor