B2.Fixture: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A fixture is used to attach a shape to a body for collision de..."
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Supported platforms:''' <br/>
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
Line 8: Line 8:
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 ===
[[b2.Fixture:getBody]] - returns the parent body of this fixture<br/>
[[b2.Fixture:getFilterData]] - returns the contact filtering data<br/>
[[b2.Fixture:isSensor]] - is this fixture a sensor (non-solid)?<br/>
[[b2.Fixture:setFilterData]] - sets the contact filtering data<br/>
[[b2.Fixture:setSensor]] - sets if this fixture is a sensor<br/>
| style="width: 50%;"|
| style="width: 50%;"|
=== Events ===
=== Events ===
=== Constants ===
=== Constants ===
|}
|}

Revision as of 07:57, 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`.






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