Motor

Show Deprecated

An object used to make movable JointInstance between two Parts.

Summary

Properties

Displays the current rotation of the motor in radians.

NOT REPLICATED

The desired angle to turn the motor to in radians.

The maximum velocity the motor can use to reach Motor.DesiredAngle measured in radians per physics frame (1/60th of a second).

Events

Methods

SetDesiredAngle(value: number): void  

Sets Motor.DesiredAngle of the motor.

Properties

CurrentAngle

Not Replicated

Displays the current rotation of the motor in radians.

DesiredAngle

The desired angle to turn the motor to in radians. The motor will attempt to reach this angle (provided Motor.MaxVelocity is greater than 0.

MaxVelocity

The maximum velocity the motor can use to reach Motor.DesiredAngle measured in radians per physics frame (1/60th of a second).

Events

Methods

SetDesiredAngle

void

Sets Motor.DesiredAngle of the motor.

Parameters

value: number

Returns

void