# Sandbox.BallJointBuilder.WithTargetRotation

```csharp
BallJointBuilder WithTargetRotation(Rotation rotation)
```

Sets and enables the target-rotation spring motor.

### Parameters

- `rotation` (`Rotation`)

### Returns

`BallJointBuilder`

Declared in [Sandbox.BallJointBuilder](/api/Sandbox.BallJointBuilder).
Assembly: `Sandbox.Engine`.
