Set Up Motion Controller for Gear VR

Setting up Gear VR motion controller to work with UE4.

Choose your operating system:

Windows

macOS

Linux

Prerequisite Topics

In order to understand and use the content on this page, make sure you are familiar with the following topics:

The Gear VR has Motion Controller will allow you to interact with your UE4 project like never before by enabling users to pick up and interact with objects like they would in the real world. In the following How - To we will take a look at how you can setup your UE4 projects to work with the Gear VR Motion Controller.

Steps

  1. First, open up the player pawn you want to add Motion Controller support to, in this example, our pawn is called GearVR_Pawn_MotionController , and in the Components tab, click on the Add Component button and then search for Motion Controller .

    HTGearVR_MC_00.png

  2. Drag the newly added Motion Controller on top of the existing VRCameraRoot so that it is a child component like the VRCamera .

    HTGearVR_MC_01.png

    By default, the Gear VR Motion Controller Component Location should be set to 0,0,0 when added to your Pawn. If for some reason this is not the case, make sure and set the location to 0,0,0.

  3. Click on the Add Component button and from the displayed list, select the Static Mesh option to add a new Static Mesh component.

    HTGearVR_MC_05.png

  4. Select the Static Mesh component and then over in the Details panel input a Static Mesh in the Static Mesh section to give a visual representation to the Motion Controller.

    Click for full image.

  5. Compile and save the Blueprint and then drag the GearVR_Pawn_MotionController Pawn from the Content Browser to the level.

    Click for full image.

  6. Select the newly added Player Pawn and in the Details panel, make sure to set the Auto Possess Player to Player 0 so that we will use this Pawn when the level is running.

    HTGearVR_MC_03.png

  7. Finally, press the Launch button to deploy and run this level on your Samsung Galaxy smartphone.

    HTGearVR_MC_04.png

End Result

When your project launches, put your phone in your Gear VR headset and pick up your Gear VR Motion Controller. Now when you move the motion controller around in the real world, you should see that movement replicated in your UE4 project like in the following video.

If the Gear VR Motion Controller mesh seems to be in the wrong location, hold the Motion Controller out in front of you and then press and hold the Home button to re-calibrate the Motion Controller position.

UE4 Project Downloads

Below you will find a link to where you can download the UE4 project that was used to create this example.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss