LHRevoluteJointNode Reference

LHRevoluteJointNode.lua

Overview

LHRevoluteJointNode class is used to load a LevelHelper revolute joint or as they are called in Corona SDK, pivot joints.

Conforms to:

LHNodeProtocol

LHJointsProtocol

Instance Methods

getIsLimitEnabled

local  getIsLimitEnabled()
Discussion

Returns whether or not the limit is emabled on this revolute joint node. A boolean value.

Declared In
LHRevoluteJointNode.lua

getIsMotorEnabled

local  getIsMotorEnabled()
Discussion

Returns whether or not the motor is enabled on the joint. A boolean value.

Declared In
LHRevoluteJointNode.lua

getLowerAngle

local  getLowerAngle()
Discussion

Returns the lower angle limit. A number value.

Declared In
LHRevoluteJointNode.lua

getMaxMotorTorque

local  getMaxMotorTorque()
Discussion

Returns the maximum motor torque. A number value.

Declared In
LHRevoluteJointNode.lua

getMotorSpeed

local  getMotorSpeed()
Discussion

Returns the motor speed. A number value.

Declared In
LHRevoluteJointNode.lua

getUpperAngle

local  getUpperAngle()
Discussion

Returns the upper angle limit. A number value.

Declared In
LHRevoluteJointNode.lua

setIsLimitEnabled

local  setIsLimitEnabled(value)
Parameters
value

A boolean value.

Discussion

Enable or disable the limit on this revolute joint node.

Declared In
LHRevoluteJointNode.lua

setIsMotorEnabled

local  setIsMotorEnabled(value)
Parameters
value

A boolean value.

Discussion

Enable or disable motor on the joint.

Declared In
LHRevoluteJointNode.lua

setMaxMotorTorque

local  setMaxMotorTorque(value)
Parameters
value

A number value.

Discussion

sets the max. motor torque on the joint.

Declared In
LHRevoluteJointNode.lua

setMotorSpeed

local  setMotorSpeed(value)
Parameters
value

A number value.

Discussion

Sets the motor speed

Declared In
LHRevoluteJointNode.lua

setRotationLimits

local  setRotationLimits(minValue, maxValue)
Parameters
minValue

A number value.

maxValue

A number value.

Discussion

Sets the min. and max. rotation limits.

Declared In
LHRevoluteJointNode.lua
Last updated: 2015-3-15

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.