# Sandbox.Physics.BallSocketJoint.SetMotorVelocity

```csharp
void SetMotorVelocity(Vector3 velocity, float maxTorque)
```

Set the motor velocity and max torque.

### Parameters

- `velocity` (`Vector3`)
- `maxTorque` (`float`)

Declared in [Sandbox.Physics.BallSocketJoint](/api/Sandbox.Physics.BallSocketJoint).
Assembly: `Sandbox.Engine`.
