Struct HingeJoint

A hinge between two 3D bodies.

struct HingeJoint ;

A HingeJoint normally uses the Z axis of body A as the hinge axis, another axis can be specified when adding it manually though.

Properties

NameTypeDescription
angularLimitBias[get, set] doubleThe speed with which the rotation across the axis perpendicular to the hinge gets corrected.
angularLimitEnable[get, set] boolIf true, the hinges maximum and minimum rotation, defined by angularLimit/lower and angularLimit/upper has effects.
angularLimitLower[get, set] doubleThe minimum rotation. Only active if angularLimit/enable is true.
angularLimitRelaxation[get, set] doubleThe lower this value, the more the rotation gets slowed down.
angularLimitSoftness[get, set] double
angularLimitUpper[get, set] doubleThe maximum rotation. Only active if angularLimit/enable is true.
motorEnable[get, set] boolWhen activated, a motor turns the hinge.
motorMaxImpulse[get, set] doubleMaximum acceleration for the motor.
motorTargetVelocity[get, set] doubleTarget speed for the motor.
paramsBias[get, set] doubleThe speed with which the two bodies get pulled together when they move in different directions.

Methods

NameDescription
_getLowerLimit
_getUpperLimit
_setLowerLimit
_setUpperLimit
getFlag
getParam
setFlag
setParam

Enums

NameDescription
Constants
Flag
Param