Class
Motor
Makes a movable JointInstance between two parts.
An object used to make movable JointInstance between two Parts.
Properties 3#
CurrentAnglefloat | Displays the current rotation of the motor in radians.ReadSafeNotReplicated |
DesiredAnglefloat | The desired angle to turn the motor to in radians.ReadSafe |
MaxVelocityfloat | The 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 | Sets Motor.DesiredAngle of the motor. |
SetDesiredAngle(value: float): ()#
Sets Motor.DesiredAngle of the motor.
| Name | Type | Default | Description |
|---|---|---|---|
value | float | The target angle, in radians, to set as the motor's
Motor.DesiredAngle. |
Returns
()
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild