Difference between revisions of "B2"
Line 18: | Line 18: | ||
[[Special:MyLanguage/b2.createPulleyJointDef|b2.createPulleyJointDef]] ''<translate>creates and returns a pulley joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createPulleyJointDef(bodyA,bodyB,groundAnchorAx,groundAnchorAy,groundAnchorBx,groundAnchorBy,anchorAx,anchorAy,anchorBx,anchorBy,ratio) creates and returns a pulley joint definition table --> | [[Special:MyLanguage/b2.createPulleyJointDef|b2.createPulleyJointDef]] ''<translate>creates and returns a pulley joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createPulleyJointDef(bodyA,bodyB,groundAnchorAx,groundAnchorAy,groundAnchorBx,groundAnchorBy,anchorAx,anchorAy,anchorBx,anchorBy,ratio) creates and returns a pulley joint definition table --> | ||
[[Special:MyLanguage/b2.createRevoluteJointDef|b2.createRevoluteJointDef]] ''<translate>creates and returns a revolute joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createRevoluteJointDef(bodyA,bodyB,anchorx,anchory) creates and returns a revolute joint definition table --> | [[Special:MyLanguage/b2.createRevoluteJointDef|b2.createRevoluteJointDef]] ''<translate>creates and returns a revolute joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createRevoluteJointDef(bodyA,bodyB,anchorx,anchory) creates and returns a revolute joint definition table --> | ||
− | [[Special:MyLanguage/b2.createRopeJointDef|b2.createRopeJointDef]] <br/><!-- GIDEROSMTD:b2.createRopeJointDef(bodyA,bodyB,anchorAx,anchorAy,anchorBx,anchorBy,maxLength) | + | [[Special:MyLanguage/b2.createRopeJointDef|b2.createRopeJointDef]] ''creates and returns a rope joint definition table''<br/><!-- GIDEROSMTD:b2.createRopeJointDef(bodyA,bodyB,anchorAx,anchorAy,anchorBx,anchorBy,maxLength) creates and returns a rope joint definition table --> |
[[Special:MyLanguage/b2.createWeldJointDef|b2.createWeldJointDef]] ''<translate>creates and returns a weld joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createWeldJointDef(bodyA,bodyB,anchorAx,anchorAy,anchorBx,anchorBy) creates and returns a weld joint definition table --> | [[Special:MyLanguage/b2.createWeldJointDef|b2.createWeldJointDef]] ''<translate>creates and returns a weld joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createWeldJointDef(bodyA,bodyB,anchorAx,anchorAy,anchorBx,anchorBy) creates and returns a weld joint definition table --> | ||
[[Special:MyLanguage/b2.createWheelJointDef|b2.createWheelJointDef]] ''<translate>creates and returns a wheel joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createWheelJointDef(bodyA,bodyB,anchorx,anchory,axisx,axisy) creates and returns a wheel joint definition table --> | [[Special:MyLanguage/b2.createWheelJointDef|b2.createWheelJointDef]] ''<translate>creates and returns a wheel joint definition table</translate>''<br/><!-- GIDEROSMTD:b2.createWheelJointDef(bodyA,bodyB,anchorx,anchory,axisx,axisy) creates and returns a wheel joint definition table --> | ||
Line 25: | Line 25: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
+ | |||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === |
Revision as of 16:31, 7 January 2021
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 |