ドキュメント

Unity Engine

Unity Engine

JointMotor2D

Parameters for the optional motor force applied to a Joint2D.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public struct JointMotor2D

Remarks

Additional Resources: HingeJoint2D class, SliderJoint2D class.

Properties

Property

Description

maxMotorTorqueThe maximum force that can be applied to the Rigidbody2D at the joint to attain the target speed.
motorSpeedThe desired speed for the Rigidbody2D to reach as it moves with the joint.