# Vector3.SpringDamp

## Overload 1

```csharp
static Vector3 SpringDamp(in Vector3 current, in Vector3 target, ref Vector3 velocity, float deltaTime, float frequency = 2, float damping = 0.5)
```

Springly move towards the target vector

### Parameters

- `in current` (`Vector3`)
- `in target` (`Vector3`)
- `ref velocity` (`Vector3`)
- `deltaTime` (`float`)
- `frequency` (`float`), default `2`
- `damping` (`float`), default `0.5`

### Returns

`Vector3`

## Overload 2

```csharp
static Vector3 SpringDamp(in Vector3 current, in Vector3 target, ref Vector3 velocity, float smoothTime, float deltaTime, float frequency = 2, float damping = 0.5)
```

> **Obsolete.** Use the overload without the 'smoothTime' parameter instead, as it is no longer needed.

### Parameters

- `in current` (`Vector3`)
- `in target` (`Vector3`)
- `ref velocity` (`Vector3`)
- `smoothTime` (`float`)
- `deltaTime` (`float`)
- `frequency` (`float`), default `2`
- `damping` (`float`), default `0.5`

### Returns

`Vector3`

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
