# Change world to meters scale at runtime + VR hands

**URL:** <https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791>\
**Category:** XR Development\
**Tags:** hands, Motion-Controller, unreal-engine, Oculus-Rift, question\
**Created:** [April 24, 2017, 3:16pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791 "2017-04-24T15:16:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Battlepad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Battlepad](https://forums.unrealengine.com/u/Battlepad)\
**Post date:** [April 24, 2017, 3:16pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/1 "2017-04-24T15:16:10Z")

</div>

Hi,

For a project I’m working on, I need to change the world to meters scale at runtime to give the player the impression to shrink. The problem I’m facing is that when using the UE4 MotionControllerPawn with hands, the hands will be high above the player if I lower the world to meters scale - value from 100 to 20.

Does anyone know of a way to update the hand tracking position according to the current world to meters scale?

Best regards  
Battlepad

---

<div class="post-metadata">

**Author:** ![David\_Baylis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/david_baylis/32/476718_2.png) [@David\_Baylis](https://forums.unrealengine.com/u/David_Baylis)\
**Post date:** [April 25, 2017, 11:52pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/2 "2017-04-25T23:52:02Z")

</div>

Same situation, would like a little help on this.

---

<div class="post-metadata">

**Author:** ![KaiEngelke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiEngelke](https://forums.unrealengine.com/u/KaiEngelke)\
**Post date:** [April 26, 2017, 4:12pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/3 "2017-04-26T16:12:28Z")

</div>

I did a project once where the VR pawn could shrink or grow.  
One thing I had to do to make it work was to scale the controllers accordingly. I dont know if this changed in a newer engine version but my setup at the time looked like this:

 ![135627-scalecontrollers.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/f/6afbaf27d414fc880bd56d818faa5630b25a5ed0.png)

I my case that worked fine. Now in the VR template the motion controller components are in the motion controller blueprints that get spawned in on begin play. My motion controller components were in the pawn itself which might be one thing to consider:

![135632-mocon+setup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/b/77be0ed95e902c8efd604c2eb160f01ce572c34e.png)

Depending an how small you are planing to go, you should also adjust the near clipping plane since your hands will be so close to the camera that they will not render. The default in the general Project settings is set to 10. I my lowest “world to meters” was 5 and i had to set the clipping plane to 0.1

Let me know if this was any help

---

<div class="post-metadata">

**Author:** ![Battlepad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Battlepad](https://forums.unrealengine.com/u/Battlepad)\
**Post date:** [April 26, 2017, 4:27pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/4 "2017-04-26T16:27:33Z")

</div>

Thanks a lot!  
I can’t really test to parent the controllers on to the pawn, but you helped me with the clipping plane 😃 I set it to 0.1 and the controllers are at least rendered correctly now.

---

<div class="post-metadata">

**Author:** ![KaiEngelke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiEngelke](https://forums.unrealengine.com/u/KaiEngelke)\
**Post date:** [April 26, 2017, 4:44pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/5 "2017-04-26T16:44:48Z")

</div>

You can do the scaling part in the motioncontroller BP aswell. just make a funktion in Mocon bp similar to what I posted and call it from where you adjust the world to meters by casting to the mocon BPs.  
Also try to reset the MoCons transform after scaling them. So position and rotation to 0,0,0 and scale to 1,1,1.

Are you using Vive or Rift? either way make sure that your tracking level is set to floor and your hmd is calibrated correctly in steam vr / oculus home

---

<div class="post-metadata">

**Author:** ![Battlepad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Battlepad](https://forums.unrealengine.com/u/Battlepad)\
**Post date:** [April 30, 2017, 2:43pm UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/6 "2017-04-30T14:43:15Z")

</div>

Thank you very much for your help! I resetted the MotionControllers after changing the world to meters scale and it worked great. The Controllers are working like I wanted now.  
Thanks again!

---

<div class="post-metadata">

**Author:** ![nanukpolar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nanukpolar](https://forums.unrealengine.com/u/nanukpolar)\
**Post date:** [March 1, 2019, 4:29am UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/7 "2019-03-01T04:29:51Z")

</div>

I know this is old… but thank you for posting this… saved me hours of rescaling… 😃

---

<div class="post-metadata">

**Author:** ![RogueSheep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roguesheep/32/891970_2.png) [@RogueSheep](https://forums.unrealengine.com/u/RogueSheep)\
**Post date:** [April 2, 2019, 11:10am UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/8 "2019-04-02T11:10:09Z")

</div>

For a solution see this thread:

> **[Changing World to Meters scale at runtime disrupts HMD rendering on HTC Vive](https://forums.unrealengine.com/questions/726631/changing-world-to-meters-scale-at-runtime-disrupts.html)**
>
> I'm setting the World to Meters scale value at runtime in my VR game. It was working in 4.17.2, but it's broken in PIE after I updated to 4.18.1 (I haven't checked in Standalone yet). I saw there was a similar issue in the 4.18 Preview for the Oculus...

TL;DR: close all open (except the viewport) tabs in the editor for correct behavior

---

<div class="post-metadata">

**Author:** ![david.gillespie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@david.gillespie](https://forums.unrealengine.com/u/david.gillespie)\
**Post date:** [August 30, 2019, 8:24am UTC](https://forums.unrealengine.com/t/change-world-to-meters-scale-at-runtime-vr-hands/391791/9 "2019-08-30T08:24:28Z")

</div>

Just an update that this is still an issue in 4.22 as have just encountered it (and lost days trying to implement work arounds before finding the closing tab work around!)

Have submitted as a bug to Epic - hopefully they’ll fix it for a future release. Does anyone know if it’s fixed for 4.23?
