LHPrismaticJointNode Reference

LHPrismaticJointNode.lua

Overview

LHPrismaticJointNode class is used to load a LevelHelper prismatic joint or as they are called in Corona SDK, piston joints.

Conforms to:

LHNodeProtocol

LHJointsProtocol

Instance Methods

getAxis

local  getAxis()
Discussion

Returns the joint movement axis. A point value. Table with "x" and "y" keys.

Declared In
LHPrismaticJointNode.lua

getIsLimitEnabled

local  getIsLimitEnabled()
Discussion

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

Declared In
LHPrismaticJointNode.lua

getIsMotorEnabled

local  getIsMotorEnabled()
Discussion

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

Declared In
LHPrismaticJointNode.lua

getLowerTranslation

local  getLowerTranslation()
Discussion

Returns the lower joint translation limit. A number value.

Declared In
LHPrismaticJointNode.lua

getMaxMotorForce

local  getMaxMotorForce()
Discussion

Returns the maximum motor force. A number value.

Declared In
LHPrismaticJointNode.lua

getMotorSpeed

local  getMotorSpeed()
Discussion

Returns the motor speed. A number value.

Declared In
LHPrismaticJointNode.lua

getUpperTranslation

local  getUpperTranslation()
Discussion

Returns the upper joint translation limit. A number value.

Declared In
LHPrismaticJointNode.lua

setIsLimitEnabled

local  setIsLimitEnabled(value)
Parameters
value

A boolean value.

Discussion

Enable or disable the limit on this joint node.

Declared In
LHPrismaticJointNode.lua

setIsMotorEnabled

local  setIsMotorEnabled(value)
Parameters
value

A boolean value.

Discussion

Enable or disable motor on the joint.

Declared In
LHPrismaticJointNode.lua

setLimits

local  setLimits(lowerValue, upperValue)
Parameters
lowerValue

A number value.

upperValue

A number value.

Discussion

Sets the lower and upper translation limits.

Declared In
LHPrismaticJointNode.lua

setMaxMotorForce

local  setMaxMotorForce(value)
Parameters
value

A number value.

Discussion

sets the max. motor force on the joint.

Declared In
LHPrismaticJointNode.lua

setMotorSpeed

local  setMotorSpeed(value)
Parameters
value

A number value.

Discussion

Sets the motor speed

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

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.