B2.createGearJointDef

Revision as of 11:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Creates and returns a gear joint definition table.<br /> (Please refer to b2.World:createJoin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


Creates and returns a gear joint definition table.
(Please refer to b2.World:createJoint function for more information about all the information needed to create a gear joint).

(table), = b2.createGearJointDef(bodyAbodyBjoint1joint2ratio,)

'bodyA: (b2.Body) the first attached body '
'bodyB: (b2.Body) the second attached body '
'joint1: (b2.Joint) the first revolute/prismatic joint attached to the gear joint '
'joint2: (b2.Joint) the second revolute/prismatic joint attached to the gear joint '
'ratio: (number, default = 1) the gear ratio '
Returns (table) A new gear joint definition table