# Sandbox.Animation.GraphBuilder.OrientationWarp

```csharp
Node OrientationWarp(Node clip, Node target, bool relativeToCharacter = True, RootMotionSamplingMode samplingMode = 1, OrientationWarpAlignmentMode alignmentMode = 0)
```

Redirect an animation clip's root-motion facing toward a character-space
`target` - either a direction (a vector node) or an angle offset
in degrees (a float node). Uses an orientation warp event on the clip.

### Parameters

- `clip` (`Node`): The animation clip to warp; must be a clip node.
- `target` (`Node`): A vector direction, or a float angle offset in degrees.
- `relativeToCharacter` (`bool`), default `True`: Whether an offset is relative to the character or the original root motion.
- `samplingMode` (`RootMotionSamplingMode`), default `1`: How the warped root motion is sampled.
- `alignmentMode` (`OrientationWarpAlignmentMode`), default `0`: Whether to align movement direction or character forward.

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
