# JointMotor2D

> Parameters for the optional motor force applied to a Joint2D.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public struct JointMotor2D
```

## Remarks

Additional Resources: [HingeJoint2D](/engine/6000.7/script-reference/unityengine/hingejoint2d.md), [SliderJoint2D](/engine/6000.7/script-reference/unityengine/sliderjoint2d.md)

## Properties

| Property                                                                                     | Description                                                                                       |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [maxMotorTorque](/engine/6000.7/script-reference/unityengine/jointmotor2d/maxmotortorque.md) | The maximum force that can be applied to the Rigidbody2D at the joint to attain the target speed. |
| [motorSpeed](/engine/6000.7/script-reference/unityengine/jointmotor2d/motorspeed.md)         | The desired speed for the Rigidbody2D to reach as it moves with the joint.                        |
