Fixture

Available since LÖVE 0.8.0
This type is not supported in earlier versions.

Fixtures attach shapes to bodies.

Constructors

love.physics.newFixture Creates and attaches a fixture. 0.8.0

Functions

Fixture:destroy Destroys the fixture. 0.8.0
Fixture:getBody Returns the body the fixture is attached to. 0.8.0
Fixture:getBoundingBox Returns the points of the fixture bounding box. 0.8.0
Fixture:getCategory Returns the categories the fixture belongs to. 0.8.0
Fixture:getDensity Returns the density of the fixture. 0.8.0
Fixture:getFilterData Returns the filter data of the fixture. 0.8.0
Fixture:getFriction Returns the friction of the fixture. 0.8.0
Fixture:getGroupIndex Returns the group the fixture belongs to. 0.8.0
Fixture:getMask Returns which categories this fixture should NOT collide with. 0.8.0
Fixture:getMassData Returns the mass, its center and the rotational inertia. 0.8.0
Fixture:getRestitution Returns the restitution of the fixture. 0.8.0
Fixture:getShape Returns the shape of the fixture. 0.8.0
Fixture:getUserData Returns the Lua value associated with this fixture. 0.8.0
Fixture:isDestroyed Gets whether the Fixture is destroyed. 0.9.2
Fixture:isSensor Returns whether the fixture is a sensor. 0.8.0
Fixture:rayCast Casts a ray against the shape of the fixture. 0.8.0
Fixture:setCategory Sets the categories the fixture belongs to. 0.8.0
Fixture:setDensity Sets the density of the fixture. 0.8.0
Fixture:setFilterData Sets the filter data of the fixture. 0.8.0
Fixture:setFriction Sets the friction of the fixture. 0.8.0
Fixture:setGroupIndex Sets the group the fixture belongs to. 0.8.0
Fixture:setMask Sets which categories this fixture should NOT collide with. 0.8.0
Fixture:setRestitution Sets the restitution of the fixture. 0.8.0
Fixture:setSensor Sets whether the fixture should act as a sensor. 0.8.0
Fixture:setUserData Associates a Lua value with the fixture. 0.8.0
Fixture:testPoint Checks if a point is inside the shape of the fixture. 0.8.0
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Supertypes

See Also


Fixture:getMask
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:getMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns which categories this fixture should NOT

2025-01-10 15:47:30
Fixture:setCategory
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:setCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the categories the fixture belongs to

2025-01-10 15:47:30
Fixture:getBody
  • References/Game Development/LÖVE/love.physics/Fixture

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

2025-01-10 15:47:30
Fixture:setMask
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:setMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Fixture:setMask works

2025-01-10 15:47:30
Fixture:setUserData
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:setUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Associates a Lua value with the fixture.

2025-01-10 15:47:30
Fixture:getMassData
  • References/Game Development/LÖVE/love.physics/Fixture

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

2025-01-10 15:47:30
Fixture:testPoint
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:testPoint Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if a point is inside the shape of the

2025-01-10 15:47:30
Fixture:getFilterData
  • References/Game Development/LÖVE/love.physics/Fixture

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

2025-01-10 15:47:30
Fixture:getCategory
  • References/Game Development/LÖVE/love.physics/Fixture

Fixture:getCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the categories the fixture belongs

2025-01-10 15:47:30
Fixture:setGroupIndex
  • References/Game Development/LÖVE/love.physics/Fixture

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

2025-01-10 15:47:30