Moai SDK  2.0
MOAIBox2DGearJoint Class Reference
+ Inheritance diagram for MOAIBox2DGearJoint:

Function List

getJointA
 
getJointB
 
getRatio
 
setRatio
 

Additional Inherited Members

- Function List inherited from MOAIBox2DJoint
destroy
 
getAnchorA
 
getAnchorB
 
getBodyA
 
getBodyB
 
getReactionForce
 
getReactionTorque
 

Function Documentation

getJointA

See Box2D documentation.


function getJointA ( MOAIBox2DGearJoint self )

Parameters
MOAIBox2DGearJointself
Returns
MOAIBox2DJoint jointA
getJointB

See Box2D documentation.


function getJointB ( MOAIBox2DGearJoint self )

Parameters
MOAIBox2DGearJointself
Returns
MOAIBox2DJoint jointB
getRatio

See Box2D documentation.


function getRatio ( MOAIBox2DGearJoint self )

Parameters
MOAIBox2DGearJointself
Returns
number ratio
setRatio

See Box2D documentation.


function setRatio ( MOAIBox2DGearJoint self [, number ratio ] )

Parameters
MOAIBox2DGearJointself
numberratio Optional. Default value is 0.
Returns
nil