Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIBox2DPrismaticJoint Class Reference
Inheritance diagram for MOAIBox2DPrismaticJoint:
MOAIBox2DJoint

List of all members.

Function List

  getJointSpeed
  getJointTranslation
  getLowerLimit
  getMotorForce
  getMotorSpeed
  getUpperLimit
  isLimitEnabled
  isMotorEnabled
  setLimit
  setLimitEnabled
  setMaxMotorForce
  setMotor
  setMotorSpeed
  setMotorEnabled

Function Documentation

See Box2D documentation.


function getJointSpeed ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
jointSpeed ( number )

See Box2D documentation.


function getJointTranslation ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
jointTranslation ( number )

See Box2D documentation.


function getLowerLimit ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
lowerLimit ( number )

See Box2D documentation.


function getMotorForce ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
motorForce ( number )

See Box2D documentation.


function getMotorSpeed ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
motorSpeed ( number )

See Box2D documentation.


function getUpperLimit ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
upperLimit ( number )

See Box2D documentation.


function isLimitEnabled ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
limitEnabled ( boolean )

See Box2D documentation.


function isMotorEnabled ( MOAIBox2DPrismaticJoint self )
Parameters:
self ( MOAIBox2DPrismaticJoint )
Returns:
motorEnabled ( boolean )

See Box2D documentation.


function setLimit ( MOAIBox2DPrismaticJoint self [, number lower, number upper ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
lower ( number ) Optional. in units, converted to meters. Default value is 0.
upper ( number ) Optional. in units, converted to meters. Default value is 0.
Returns:
nil

See Box2D documentation.


function setLimitEnabled ( MOAIBox2DPrismaticJoint self [, boolean enabled ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
enabled ( boolean ) Optional. Default value is 'true'
Returns:
nil

See Box2D documentation.


function setMaxMotorForce ( MOAIBox2DPrismaticJoint self [, number maxMotorForce ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
maxMotorForce ( number ) Optional. in kg * units / s^2, converted to N [kg * m / s^2]. Default value is 0.
Returns:
nil

See Box2D documentation. If speed is determined to be zero, the motor is disabled, unless forceEnable is set.


function setMotor ( MOAIBox2DPrismaticJoint self [, number speed, number maxForce, boolean forceEnable ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
speed ( number ) Optional. in units/s converted to m/s. Default value is 0.
maxForce ( number ) Optional. in kg * units / s^2, converted to N [kg * m / s^2]. Default value is 0.
forceEnable ( boolean ) Optional. Default value is false.
Returns:
nil

See Box2D documentation.


function setMotorEnabled ( MOAIBox2DPrismaticJoint self [, boolean enabled ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
enabled ( boolean ) Optional. Default value is 'true'
Returns:
nil

See Box2D documentation.


function setMotorSpeed ( MOAIBox2DPrismaticJoint self [, number motorSpeed ] )
Parameters:
self ( MOAIBox2DPrismaticJoint )
motorSpeed ( number ) Optional. in units/s, converted to m/s. Default value is 0.
Returns:
nil