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:isDestroyed | Gets whether the Fixture is destroyed. |
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. |
Object:release (Русский) | Немедленно удаляет Lua ссылку на объект. |
Object:type (Русский) | Возвращает строку с названием типа объекта. |
Object:typeOf (Русский) | Проверят, является ли объект определенным типом. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info