# Sandbox.Animation.GraphBuilder.VelocityScale

## Overload 1

```csharp
Node VelocityScale(string animation, Node desiredVelocity, bool looping = True)
```

Play an animation scaled to move at a desired velocity, using the average
root motion velocity baked into the clip - e.g. matching a walk cycle's
playback to the actual movement speed so the feet never slide.

### Parameters

- `animation` (`string`)
- `desiredVelocity` (`Node`)
- `looping` (`bool`), default `True`

### Returns

`Node`

## Overload 2

```csharp
Node VelocityScale(Node clip, Node desiredVelocity, float defaultVelocity)
```

### Parameters

- `clip` (`Node`)
- `desiredVelocity` (`Node`)
- `defaultVelocity` (`float`)

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
