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 |
|---|---|
| maxMotorTorque | The maximum force that can be applied to the Rigidbody2D at the joint to attain the target speed. |
| motorSpeed | The desired speed for the Rigidbody2D to reach as it moves with the joint. |