Roblox UtilitiesDevlHub Roblox Documentation

Class

Motor

Inherits
JointInstance › Instance › Object
Memory category
BaseParts
Subclasses
1

Makes a movable JointInstance between two parts.

An object used to make movable JointInstance between two Parts.

Properties 3#

CurrentAnglefloatDisplays the current rotation of the motor in radians.ReadSafeNotReplicated
DesiredAnglefloatThe desired angle to turn the motor to in radians.ReadSafe
MaxVelocityfloatThe maximum velocity the motor can use to reach Motor.DesiredAngle measured in radians per physics frame (1/60th of a second).ReadSafe

CurrentAngle: float#

NotReplicatedReadSafe

Displays the current rotation of the motor in radians.

DesiredAngle: float#

ReadSafe

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: float#

ReadSafe

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

Methods 1#

SetDesiredAngle(value: float): ()#

Sets Motor.DesiredAngle of the motor.

NameTypeDefaultDescription
valuefloatThe target angle, in radians, to set as the motor's Motor.DesiredAngle.
Returns
  • ()

Inherited members#

Inherited from JointInstance 7
Properties (7)

Active, C0, C1, Enabled, Part0, Part1, part1

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed

Subclasses 1#