Difference between revisions of "B2"
|  (added template) | |||
| Line 4: | Line 4: | ||
| '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | ||
| '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
| + | |||
| === <translate>Description</translate> === | === <translate>Description</translate> === | ||
| − | + | To load the Box2D library, call ''require "box2d"''. After loading Box2D library, [[Special:MyLanguage/b2|b2]] table stores all classes and functions related to Box2D physics library. | |
| − | To load the Box2D library, call ''require "box2d"''. After loading Box2D library, [[Special:MyLanguage/b2|b2]] table stores all  | + | |
| − | classes and functions related to Box2D physics library.  | ||
| − | |||
| {|- | {|- | ||
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| Line 24: | Line 23: | ||
| [[Special:MyLanguage/b2.getScale|b2.getScale]] ''<translate>returns the global pixels to meters scale</translate>''<br/><!-- GIDEROSMTD:b2.getScale() returns the global pixels to meters scale --> | [[Special:MyLanguage/b2.getScale|b2.getScale]] ''<translate>returns the global pixels to meters scale</translate>''<br/><!-- GIDEROSMTD:b2.getScale() returns the global pixels to meters scale --> | ||
| [[Special:MyLanguage/b2.setScale|b2.setScale]] ''<translate>sets the global pixels to meters scale</translate>''<br/><!-- GIDEROSMTD:b2.setScale(scale) sets the global pixels to meters scale --> | [[Special:MyLanguage/b2.setScale|b2.setScale]] ''<translate>sets the global pixels to meters scale</translate>''<br/><!-- GIDEROSMTD:b2.setScale(scale) sets the global pixels to meters scale --> | ||
| + | |||
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| === <translate>Events</translate> === | === <translate>Events</translate> === | ||
| Line 42: | Line 42: | ||
| |} | |} | ||
| − | + | ---- | |
| − | + | *[[LiquidFun]] | |
Revision as of 04:21, 17 February 2020
Supported platforms: 






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 | 
