Difference between revisions of "Fixture"

(Applying listings to included added and removed fields.)
m (Add links to shape and body pages to description.)
 
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=type}}
 
{{newin|[[0.8.0]]|080|type=type}}
Fixtures attach shapes to bodies.
+
Fixtures attach [[Shape|shapes]] to [[Body|bodies]].
 
== Constructors ==
 
== Constructors ==
 
{{#ask: [[Category:Functions]] [[Constructs::Fixture]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[Constructs::Fixture]] [[Concept:Current]]

Latest revision as of 13:16, 18 October 2014

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. Added since 0.8.0

Functions

Fixture:destroy Destroys the fixture. Added since 0.8.0
Fixture:getBody Returns the body the fixture is attached to. Added since 0.8.0
Fixture:getBoundingBox Returns the points of the fixture bounding box. Added since 0.8.0
Fixture:getCategory Returns the categories the fixture belongs to. Added since 0.8.0
Fixture:getDensity Returns the density of the fixture. Added since 0.8.0
Fixture:getFilterData Returns the filter data of the fixture. Added since 0.8.0
Fixture:getFriction Returns the friction of the fixture. Added since 0.8.0
Fixture:getGroupIndex Returns the group the fixture belongs to. Added since 0.8.0
Fixture:getMask Returns which categories this fixture should NOT collide with. Added since 0.8.0
Fixture:getMassData Returns the mass, its center and the rotational inertia. Added since 0.8.0
Fixture:getRestitution Returns the restitution of the fixture. Added since 0.8.0
Fixture:getShape Returns the shape of the fixture. Added since 0.8.0
Fixture:getUserData Returns the Lua value associated with this fixture. Added since 0.8.0
Fixture:isDestroyed Gets whether the Fixture is destroyed. Added since 0.9.2
Fixture:isSensor Returns whether the fixture is a sensor. Added since 0.8.0
Fixture:rayCast Casts a ray against the shape of the fixture. Added since 0.8.0
Fixture:setCategory Sets the categories the fixture belongs to. Added since 0.8.0
Fixture:setDensity Sets the density of the fixture. Added since 0.8.0
Fixture:setFilterData Sets the filter data of the fixture. Added since 0.8.0
Fixture:setFriction Sets the friction of the fixture. Added since 0.8.0
Fixture:setGroupIndex Sets the group the fixture belongs to. Added since 0.8.0
Fixture:setMask Sets which categories this fixture should NOT collide with. Added since 0.8.0
Fixture:setRestitution Sets the restitution of the fixture. Added since 0.8.0
Fixture:setSensor Sets whether the fixture should act as a sensor. Added since 0.8.0
Fixture:setUserData Associates a Lua value with the fixture. Added since 0.8.0
Fixture:testPoint Checks if a point is inside the shape of the fixture. Added since 0.8.0
Object:release Immediately destroys the object's Lua reference. Added since 11.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


Other Languages