Difference between revisions of "B2.Fixture"
From GiderosMobile
Line 7: | Line 7: | ||
transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc.<br /> | transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc.<br /> | ||
Fixtures are created via `b2.Body:createFixture`.<br /> | Fixtures are created via `b2.Body:createFixture`.<br /> | ||
− | <br /> | + | <br />{|- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === |
Revision as of 09:12, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
A fixture is used to attach a shape to a body for collision detection. A fixture inherits its
transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc.
Fixtures are created via `b2.Body:createFixture`.
{|-
| style="width: 50%;"|
Methods
b2.Fixture:getBody - returns the parent body of this fixture
b2.Fixture:getFilterData - returns the contact filtering data
b2.Fixture:isSensor - is this fixture a sensor (non-solid)?
b2.Fixture:setFilterData - sets the contact filtering data
b2.Fixture:setSensor - sets if this fixture is a sensor
| style="width: 50%;"|
Events
Constants
|}