# Check if motion controllers are tracked not working on Windows MR?

**URL:** <https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [July 26, 2019, 1:10pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214 "2019-07-26T13:10:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [July 26, 2019, 1:10pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/1 "2019-07-26T13:10:34Z")

</div>

This is the code I used for checking if the Vive controllers were powered on (or tracking):

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/f/1fa68ddef6234de60472d2fb9760ed76d749d981.png)

But even when my Windows MR controllers are powered off they appear in my game world, which means that they’re being reported as tracked?

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [August 20, 2019, 6:17am UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/2 "2019-08-20T06:17:36Z")

</div>

Nobody is developing for WindowsMR directly, I guess? 🙂

I wonder if OpenXR has a generalized solution for this… or if it simply is Microsoft that ignores some protocol on their side.

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [August 23, 2019, 7:14am UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/3 "2019-08-23T07:14:59Z")

</div>

Apparently, the tracking cameras on a WindowsMR HMD can also fail silently, and when that happens, you only get the gyro (3DOF), but no height information and in the Mixed Reality Portal, they then lock the height to how tall they think you are, but in Unreal, the HMD ends up in the floor.

Is there also no built-in way of detecting that in Unreal?

Do I really have to set a repeating timer and compare transforms manually?

EDIT: Hello… and this seems to be exclusively for WindowsMR and the HMD (exactly what my last post was about), although it doesn’t seem to differentiate between 3DOF and full tracking:

![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/0/c0e24194f0d5948cdc336a3638ba1148b8a29d2e.png)

But still no solution for controllers?

---

<div class="post-metadata">

**Author:** ![YuriNK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yurink/32/1194511_2.png) [@YuriNK](https://forums.unrealengine.com/u/YuriNK)\
**Post date:** [August 23, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/4 "2019-08-23T16:26:35Z")

</div>

Not a perfect solution, but I simply check if location and rotation (for components - relative) are exactly equal to zero.

---

<div class="post-metadata">

**Author:** ![jacksonf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jacksonf](https://forums.unrealengine.com/u/jacksonf)\
**Post date:** [August 24, 2019, 9:00pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/5 "2019-08-24T21:00:59Z")

</div>

We were missing some plumbing to the proper BP functions. This fix allows you to use IsTracked and HasValidTrackingPosition:  
[https://github.com/fieldsJacksonG/UnrealEngine/commit/da0aa0108eae3a75f0949cd46607b7bd96396e69](https://github.com/fieldsJacksonG/UnrealEngine/commit/da0aa0108eae3a75f0949cd46607b7bd96396e69)

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [August 26, 2019, 8:18am UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/6 "2019-08-26T08:18:20Z")

</div>

> [@jacksonf](#):
>
> We were missing some plumbing to the proper BP functions. This fix allows you to use IsTracked and HasValidTrackingPosition:  
> [https://github.com/fieldsJacksonG/Un…07b7bd96396e69](https://github.com/fieldsJacksonG/UnrealEngine/commit/da0aa0108eae3a75f0949cd46607b7bd96396e69)

Thank you!

Does it also distinguish between camera tracking and gyro-only tracking, or do we have to implement that ourselves?

(Now that I think about it, the above question goes for both the HMD and controllers, as they both are able to lose camera tracking while still having other features active…)

---

<div class="post-metadata">

**Author:** ![jacksonf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jacksonf](https://forums.unrealengine.com/u/jacksonf)\
**Post date:** [August 27, 2019, 1:40am UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/7 "2019-08-27T01:40:11Z")

</div>

If IsTrackingAvailable(), you will have at least 3-dof tracking, if HasValidTrackingPosition() you will have 6-dof

So:  
if (IsTrackingAvailable() && !HasValidTrackingPosition()) // 3-dof  
if (!IsTrackingAvailable()) // All tracking data is unavailable

I’ll need to take another look at the controllers - IsTracked will be true for 6-dof, we may need to add a new BP function for controller 3-dof

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [January 16, 2020, 2:07pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/8 "2020-01-16T14:07:52Z")

</div>

> [@jacksonf](#):
>
> If IsTrackingAvailable(), you will have at least 3-dof tracking, if HasValidTrackingPosition() you will have 6-dof
> 
> So:  
> if (IsTrackingAvailable() && !HasValidTrackingPosition()) // 3-dof  
> if (!IsTrackingAvailable()) // All tracking data is unavailable
> 
> I’ll need to take another look at the controllers - IsTracked will be true for 6-dof, we may need to add a new BP function for controller 3-dof

This seems to have changed again in 4.24, but it seems like an ok change.

I now to this every frame instead:

 ![Capture.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/0/6062dfbff1620c4e84cfab44afc7828f9d0ec6a9.jpeg)

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [February 3, 2020, 2:33pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/9 "2020-02-03T14:33:31Z")

</div>

Now I wish the same would exist for the headset…

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [March 17, 2020, 10:27am UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/10 "2020-03-17T10:27:20Z")

</div>

In 4.25 I see this is new… but what strange entries in that list, and no entry for the headset??

![1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/8/586d88a906afabe46e2bf24cc592039afe14c30a.png)

---

<div class="post-metadata">

**Author:** ![nacho1998zgz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nacho1998zgz](https://forums.unrealengine.com/u/nacho1998zgz)\
**Post date:** [April 10, 2024, 2:50pm UTC](https://forums.unrealengine.com/t/check-if-motion-controllers-are-tracked-not-working-on-windows-mr/129214/11 "2024-04-10T14:50:02Z")

</div>

Hi al!! I am currently experiencing a similar issue regarding how to detect if a controller (vive controller) turns off in steam vr while run time or when it begins play. So I followed a similar approach with the event tick but still it gives false values. It indicates currenttrackingstatus as tracked when it is actually off, I have also tried with the isTracked node but returns true in some situations where it should not. Any ideas??

Basically I want to detect how many controllers are active or not while playing.

Thank you in advance

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/e/f3eef2712c2df24a2597212d4412047bd7ba6759.png)
