Fixture (Русский)

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

"Fixture" присоединяют "shape" к "body".

Constructors

love.physics.newFixture Creates and attaches a fixture.

Functions

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

Supertypes

Object_(Русский)

See Also


Other Languages

Personal tools