Documentation

Unity Engine

Unity Engine

motorSpeed

The desired speed for the Rigidbody2D to reach as it moves with the joint.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float motorSpeed { get; set; }

Remarks

Additional Resources: Rigidbody2D class, JointMotor2D.maxMotorTorque.