# Vector3.TcbSpline

```csharp
static Vector3 TcbSpline(in Vector3 p0, in Vector3 p1, in Vector3 p2, in Vector3 p3, float tension, float continuity, float bias, float u)
```

Calculates an interpolated point using the Kochanek-Bartels spline (TCB spline).

### Parameters

- `in p0` (`Vector3`)
- `in p1` (`Vector3`)
- `in p2` (`Vector3`)
- `in p3` (`Vector3`)
- `tension` (`float`): Tension parameter which affects the sharpness at the control point. Positive values make the curve tighter, negative values make it rounder.
- `continuity` (`float`): Continuity parameter which affects the continuity between segments. Positive values create smoother transitions, negative values can create corners.
- `bias` (`float`): Bias parameter which affects the direction of the curve as it passes through the control point. Positive values bias the curve towards the next point, negative values towards the previous.
- `u` (`float`): The interpolation parameter between 0 and 1, where 0 is the start of the segment and 1 is the end.

### Returns

`Vector3`: The interpolated point on the curve.

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
