# Replacing Pelvis Rotation in Mocopi Stream with External Tracker (Z-Axis/Yaw)

**URL:** <https://forums.unrealengine.com/t/replacing-pelvis-rotation-in-mocopi-stream-with-external-tracker-z-axis-yaw/2720600>\
**Category:** Character & Animation\
**Tags:** Vive, livelink, unreal-engine, question, Blueprint\
**Created:** [May 7, 2026, 12:57pm UTC](https://forums.unrealengine.com/t/replacing-pelvis-rotation-in-mocopi-stream-with-external-tracker-z-axis-yaw/2720600 "2026-05-07T12:57:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymmovies](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ymmovies](https://forums.unrealengine.com/u/ymmovies)\
**Post date:** [May 7, 2026, 12:57pm UTC](https://forums.unrealengine.com/t/replacing-pelvis-rotation-in-mocopi-stream-with-external-tracker-z-axis-yaw/2720600/1 "2026-05-07T12:57:20Z")

</div>

Hi everyone,

I’m working on a MoCap setup using **Mocopi** for full-body tracking, but I want to replace the Pelvis/Root rotation with a dedicated hardware tracker for better accuracy.

**Goal:** I want to combine the rotation data so that the **Pitch (Y)** and **Roll (X)** come from the Mocopi stream (to maintain body tilt/gravity alignment), while the **Yaw (Z)** is driven by my external tracker to define the character’s heading.

**Current Setup:**

- **Engine:** Unreal Engine 5.6

- **Input:** Live Link (Mocopi) + Vive Ultimate Trackers

- **Logic:** Currently calculating the blend in the Animation Blueprint Event Graph using `Break/Make Rotators` and converting back to a Quaternion.

**The Issue:** I’m running into issues with gimbal lock and jitter when interpolating between the two sources in the AnimGraph.

1. What is the most efficient way to isolate the Yaw from one Quaternion and the Pitch/Roll from another without causing “snapping” at the -180/180-degree flip point?

2. Should I be using a **Modify Bone** node in `World Space` or `Component Space` to avoid fighting with the parent/child hierarchy of the Mocopi skeleton?

3. Are there specific nodes (like `CombineRotators` vs. `ComposeTransform`) that handle this specific type of “Upright Orientation” blending better?

Any advice or screenshots of an optimized Blueprint node graph for this would be greatly appreciated! I have attach the node flow that has been done, but Z glitches

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/2/3b2c984e9e32b8a606d5a75bf108bbaf93c349ad.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/8/e7827097ff0c4972b9081cc551373a4a6617c975.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/0/c70683691826ca6b87e2b4da272aba4f2be2cc42.png)
