Motor

非推奨を表示

An object used to make movable JointInstance between two Parts.

概要

プロパティ

  • 複製されていません
    並列読み取り

    Displays the current rotation of the motor in radians.

  • 並列読み取り

    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).

JointInstance から継承した プロパティ

プロパティ

CurrentAngle

複製されていません
並列読み取り

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).

方法

SetDesiredAngle

void

Sets Motor.DesiredAngle of the motor.

パラメータ

value: number

戻り値

void

イベント