文档

Unity Engine

Unity Engine

motorSpeed

The desired speed for the Rigidbody2D to reach as it moves with the joint.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

Additional Resources: Rigidbody2D class, JointMotor2D.maxMotorTorque.