---
title: ExtractRootMotionBone(float3, quaternion)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/animationstream/extractrootmotionbone
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/animationstream/extractrootmotionbone.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:14:28.313Z
locale: en-us
---

# ExtractRootMotionBone(float3, quaternion)

> Removes the root motion from the pose by expressing the root motion bone relative to a root transform.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public void ExtractRootMotionBone(float3 rootPosition, quaternion rootRotation)
```

### Parameters

**** (\[float3]\(/engine/7000.0/script-reference/unity/mathematics/float3)): The position of the root transform in character space.**** (\[quaternion]\(/engine/7000.0/script-reference/unity/mathematics/quaternion)): The rotation of the root transform in character space.

### Remarks

To sample a clip without its root motion, use [ClipSampler.SampleExtractingRootMotion](/engine/7000.0/script-reference/unity/animations/clipsampler/sampleextractingrootmotion.md), which calls this method for you. Use this method for a pose that you build yourself, for example after you change the pose of a clip: pass [MotionOutput.RootTransform](/engine/7000.0/script-reference/unity/animations/motionoutput/roottransform.md) from [ClipSampler.SampleRootMotion](/engine/7000.0/script-reference/unity/animations/clipsampler/samplerootmotion.md) at the same time. Without this call, the pose still moves with the curves of the clip, so the character moves twice.

Call it only when the clip animates the translation or rotation of the root motion bone or of one of its parent bones. Otherwise the pose doesn't move with the root motion, and this method moves the pose against it. This method doesn't handle **Loop Pose**: for a clip with **Loop Time** and **Loop Pose** enabled, the pose was already corrected, so the result differs from `SampleExtractingRootMotion`.

The method changes the local to parent channels of the bone at [RigDefinition.RootMotionBoneIndex](/engine/7000.0/script-reference/unity/animations/rigdefinition/rootmotionboneindex.md) so that its new transform in character space is its current transform in character space, relative to the root transform. The parents of the bone keep their values. The method does nothing if the rig has no skeleton.

When a parent of the bone has a non-uniform scale, the result is an approximation, as with [AnimationStream.SetLocalToCharacterTRS](/engine/7000.0/script-reference/unity/animations/animationstream/setlocaltocharactertrs.md).
