Difference between revisions of "B2"
Line 2: | Line 2: | ||
'''Supported platforms:''' android, ios, mac, pc<br/> | '''Supported platforms:''' android, ios, mac, pc<br/> | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
To load the Box2D library, call [[Special:MyLanguage/require "box2d"|require "box2d"]]. After loading Box2D library, [[Special:MyLanguage/b2|b2]] table stores all <br /> | To load the Box2D library, call [[Special:MyLanguage/require "box2d"|require "box2d"]]. After loading Box2D library, [[Special:MyLanguage/b2|b2]] table stores all <br /> | ||
Line 9: | Line 9: | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Methods === | + | === <translate>Methods</translate> === |
[[Special:MyLanguage/b2.createDistanceJointDef|b2.createDistanceJointDef]] ''<translate>creates and returns a distance joint definition table</translate>''<br/> | [[Special:MyLanguage/b2.createDistanceJointDef|b2.createDistanceJointDef]] ''<translate>creates and returns a distance joint definition table</translate>''<br/> | ||
[[Special:MyLanguage/b2.createFrictionJointDef|b2.createFrictionJointDef]] ''<translate>creates and returns a friction joint definition table</translate>''<br/> | [[Special:MyLanguage/b2.createFrictionJointDef|b2.createFrictionJointDef]] ''<translate>creates and returns a friction joint definition table</translate>''<br/> | ||
Line 23: | Line 23: | ||
[[Special:MyLanguage/b2.setScale|b2.setScale]] ''<translate>sets the global pixels to meters scale</translate>''<br/> | [[Special:MyLanguage/b2.setScale|b2.setScale]] ''<translate>sets the global pixels to meters scale</translate>''<br/> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Events === | + | === <translate>Events</translate> === |
− | === Constants === | + | === <translate>Constants</translate> === |
[[Special:MyLanguage/b2.DISTANCE_JOINT|b2.DISTANCE_JOINT]]<br/> | [[Special:MyLanguage/b2.DISTANCE_JOINT|b2.DISTANCE_JOINT]]<br/> | ||
[[Special:MyLanguage/b2.DYNAMIC_BODY|b2.DYNAMIC_BODY]]<br/> | [[Special:MyLanguage/b2.DYNAMIC_BODY|b2.DYNAMIC_BODY]]<br/> |
Revision as of 07:28, 24 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
To load the Box2D library, call require "box2d". After loading Box2D library, b2 table stores all
classes and functions related to Box2D physics library.
Methodsb2.createDistanceJointDef creates and returns a distance joint definition table |
EventsConstantsb2.DISTANCE_JOINT |