B2.Fixture

From GiderosMobile
Revision as of 09:57, 23 August 2018 by Hgy29 (talk | contribs)

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`.






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

Events

Constants