Difference between revisions of "B2"
From GiderosMobile
Line 10: | Line 10: | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
− | [[b2.createDistanceJointDef]] | + | [[b2.createDistanceJointDef]] {{<translate>creates and returns a distance joint definition table</translate>}}<br/> |
− | [[b2.createFrictionJointDef]] | + | [[b2.createFrictionJointDef]] {{<translate>creates and returns a friction joint definition table</translate>}}<br/> |
− | [[b2.createGearJointDef]] | + | [[b2.createGearJointDef]] {{<translate>creates and returns a gear joint definition table</translate>}}<br/> |
− | [[b2.createMouseJointDef]] | + | [[b2.createMouseJointDef]] {{<translate>creates and returns a mouse joint definition table</translate>}}<br/> |
− | [[b2.createPrismaticJointDef]] | + | [[b2.createPrismaticJointDef]] {{<translate>creates and returns a prismatic joint definition table</translate>}}<br/> |
− | [[b2.createPulleyJointDef]] | + | [[b2.createPulleyJointDef]] {{<translate>creates and returns a pulley joint definition table</translate>}}<br/> |
− | [[b2.createRevoluteJointDef]] | + | [[b2.createRevoluteJointDef]] {{<translate>creates and returns a revolute joint definition table</translate>}}<br/> |
− | [[b2.createRopeJointDef]] | + | [[b2.createRopeJointDef]] {{<translate></translate>}}<br/> |
− | [[b2.createWeldJointDef]] | + | [[b2.createWeldJointDef]] {{<translate>creates and returns a weld joint definition table</translate>}}<br/> |
− | [[b2.createWheelJointDef]] | + | [[b2.createWheelJointDef]] {{<translate>creates and returns a wheel joint definition table</translate>}}<br/> |
− | [[b2.getScale]] | + | [[b2.getScale]] {{<translate>returns the global pixels to meters scale</translate>}}<br/> |
− | [[b2.setScale]] | + | [[b2.setScale]] {{<translate>sets the global pixels to meters scale</translate>}}<br/> |
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === |
Revision as of 14:18, 23 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.