Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Change world to meters scale at runtime + VR hands


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

Product Version: UE 4.13
more ▼

asked Apr 24 '17 at 03:16 PM in VR

avatar image

8 2 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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: alt text

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:

alt text

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

mocon setup.png (13.8 kB)
more ▼

answered Apr 26 '17 at 04:12 PM

avatar image

135 5 9 14

avatar image Battlepad Apr 26 '17 at 04:27 PM

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

avatar image Congaz2 Apr 26 '17 at 04:44 PM

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

avatar image nanukpolar Mar 01 '19 at 04:29 AM

I know this is old.. but thank you for posting this.. saved me hours of rescaling.. :D

avatar image Battlepad Apr 30 '17 at 02:43 PM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Same situation, would like a little help on this.

more ▼

answered Apr 25 '17 at 11:52 PM

avatar image

46 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

For a solution see this thread: https://answers.unrealengine.com/questions/726631/changing-world-to-meters-scale-at-runtime-disrupts.html?sort=oldest TL;DR: close all open (except the viewport) tabs in the editor for correct behavior

more ▼

answered Apr 02 '19 at 11:10 AM

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question