Develop
Develop
Select your platform

Enable and Test Body Tracking Using the Meta XR Simulator

Updated: Jun 10, 2024

Overview

Learn how to enable and test body tracking in the Meta XR Simulator to simplify app development, testing, and debugging.
Note
This feature works with all engines. The documentation below will guide you through enabling and testing body tracking for Unity.

Prerequisites

  1. Set up the Meta XR Simulator with your development environment. For more information, see Getting Started with Meta XR Simulator.
  2. After installing the package, go to Meta > Meta XR Simulator and select Activate. If it is already selected, select Deactivate and then Activate again.

Install the Meta Movement package from GitHub

  1. In the Unity Editor, go to Window > Package Manager.
    Go to the package manager in the Unity Editor
  2. In the Package Manager window, click the + button next to Packages: In Project.
    Click the + button to view packages
  3. Select Add package from git URL….
    Add package from Git
  4. Enter https://github.com/oculus-samples/Unity-Movement.git and click Add.
    It may take a few minutes to install the package.
  5. Ensure that Meta Movement is listed in Packages under Other.

Set up a scene to test body tracking

  1. Copy the Samples folder from the \\Library\PackageCache\com.meta.movement@xxxxxx\Samples directory into your Assets folder.
  2. Go to the Project Setup Tool via the menu in the bottom right corner of the Unity UI.
    Go to the project setup tool in the Unity UI
  3. Select Fix All so that all tracking is enabled.
    Enable all tracking
  4. Go to the copied Samples folder in Assets and access the subfolder Scenes.
  5. Open the MovementHighFidelty scene.
  6. Press Play to see body tracking run automatically for several seconds. The avatar’s upper body should move.
    Body tracking
Did you find this page helpful?
Thumbs up icon
Thumbs down icon