Set Up Motion Controller for Gear VR

The Gear VR has Motion Controller allows users to interact with assets placed in your UE4 project like they would in the real world. In the following How To we will take a look at how you can set up 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.
  2. Drag the newly added Motion Controller on top of the existing VRCameraRoot so that it is a child component like the VRCamera.
    By default, the Gear VR Motion Controller Component Location should be set to position (0,0,0) when added to your Pawn. If this is not the case, make sure and set the location to position (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.
  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.
  7. Finally, press the Launch button to deploy and run this level on your Samsung Galaxy smartphone.

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.