# Sandbox.Physics.HingeJoint.SetAngularMotor

```csharp
void SetAngularMotor(float targetVelocity, float maxTorque)
```

Set the angular motor (target velocity in radians/sec, max torque).

### Parameters

- `targetVelocity` (`float`)
- `maxTorque` (`float`)

Declared in [Sandbox.Physics.HingeJoint](/api/Sandbox.Physics.HingeJoint).
Assembly: `Sandbox.Engine`.
