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 10:03, 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`.
Methodsb2.Fixture:getBody - returns the parent body of this fixture |
EventsConstants |