JointMotor2D
Parameters for the optional motor force applied to a Joint2D.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public struct JointMotor2D
Remarks
Additional Resources: HingeJoint2D, SliderJoint2D
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. |