CLASSES
TagsA - Z

HingeJoint

Description

class HingeJoint extends MotorEnabledJoint

This class represents a single hinge physics joint

Constructor

new HingeJoint(jointData)

Parameters

Name Type Description
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