API Docs for: 0.1.0
Show:

zerk.game.engine.physics.joint.revolute Class

Revolute joint

Methods

Properties

anchorSourceX

Float

Horizontal position on the source body

anchorSourceY

Float

Vertical position on the source body

anchorTargetX

Float

Horizontal anchor position of the joint on the target body

anchorTargetY

Float

Vertical anchor position of the joint on the target body

enableLimit

Boolean

Whether the joint limits will be active

enableMotor

Boolean

Whether the joint motor will be active

lowerAngle

Float

Angle for the lower limit

maxMotorTorque

Float

Motor torque

The maximum allowable torque the motor can use. A torque too weak won't be able to move the bodies.

motorSpeed

Float

The target speed of the joint motor

Positive for counter clockwise, negative for clockwise

source

String

Key of the source body

target

String

Key of the target body

type

String

Type name of the joint

upperAngle

Float

Angle for the upper limit