Fixture

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

Fixtures attach shapes to bodies.

Constructors

love.physics.newFixtureCreates and attaches a fixture.Added since 0.8.0

Functions

Fixture:destroyDestroys the fixture.Added since 0.8.0
Fixture:getBodyReturns the body the fixture is attached to.Added since 0.8.0
Fixture:getBoundingBoxReturns the points of the fixture bounding box.Added since 0.8.0
Fixture:getCategoryReturns the categories the fixture belongs to.Added since 0.8.0
Fixture:getDensityReturns the density of the fixture.Added since 0.8.0
Fixture:getFilterDataReturns the filter data of the fixture.Added since 0.8.0
Fixture:getFrictionReturns the friction of the fixture.Added since 0.8.0
Fixture:getGroupIndexReturns the group the fixture belongs to.Added since 0.8.0
Fixture:getMaskReturns which categories this fixture should NOT collide with.Added since 0.8.0
Fixture:getMassDataReturns the mass, its center and the rotational inertia.Added since 0.8.0
Fixture:getRestitutionReturns the restitution of the fixture.Added since 0.8.0
Fixture:getShapeReturns the shape of the fixture.Added since 0.8.0
Fixture:getUserDataReturns the Lua value associated with this fixture.Added since 0.8.0
Fixture:isSensorReturns whether the fixture is a sensor.Added since 0.8.0
Fixture:rayCastCasts a ray against the shape of the fixture.Added since 0.8.0
Fixture:setCategorySets the categories the fixture belongs to.Added since 0.8.0
Fixture:setDensitySets the density of the fixture.Added since 0.8.0
Fixture:setFilterDataSets the filter data of the fixture.Added since 0.8.0
Fixture:setFrictionSets the friction of the fixture.Added since 0.8.0
Fixture:setGroupIndexSets the group the fixture belongs to.Added since 0.8.0
Fixture:setMaskSets which categories this fixture should NOT collide with.Added since 0.8.0
Fixture:setRestitutionSets the restitution of the fixture.Added since 0.8.0
Fixture:setSensorSets whether the fixture should act as a sensor.Added since 0.8.0
Fixture:setUserDataAssociates a Lua value with the fixture.Added since 0.8.0
Fixture:testPointChecks if a point is inside the shape of the fixture.Added since 0.8.0
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

See Also


Other Languages

Personal tools