CLASSES
TagsA - Z

MotorEnabledJoint

Description

class MotorEnabledJoint extends PhysicsJoint

Constructor

new MotorEnabledJoint(type, jointData)

Parameters

Name Type Description
type number
jointData PhysicsJointData

Methods

setMotor(force, maxForce) → void

Set the motor values.

Attention, this function is plugin specific. Engines won't react 100% the same.

Parameters

Name Type Description
optional force number
optional maxForce number

setLimit(upperLimit, lowerLimit) → void

Set the motor's limits.

Attention, this function is plugin specific. Engines won't react 100% the same.

Parameters

Name Type Description
upperLimit number
optional lowerLimit number