Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
kennard-consulting's avatar
kennard-consulting
Expert Protege
2 years ago
Solved

Body tracking: how to parent OVRBodyFromPose to player?

I am trying to add body (or at least 'arm') tracking. I have currently:

1. Added OVRBody to OVRInteraction

2. Added PoseFromBody to OVRBody (as a script on an empty child object)

3. Added OVRBodyFromPose to OVRCameraRig and connected it to PoseFromBody

I can see the body mesh and it's arms move correctly (yay!). It also rotates and adjusts its height relative to the camera (VR headset).

However the body itself does not move as I walk around the scene. How am I meant to parent the body to the player?

 

  • Figured it out, for those that come this way again:

    1. Don't use OVRBody

    2. Use OVRBodyFromPose as sibling of OVRCameraRig

    3. Remove its OVR Body Pose Skeleton Provider script

    4. Add OVR Body script

2 Replies

Replies have been turned off for this discussion
  • Please note: I am able to 'roughly' achieve this by copying the X/Z position of the OVRManager.tracker.

    But my body mesh does not line up exactly (it's about 10cms off). I could fix it manually, but presumably that will break with Oculus Pro or 3 and slightly different sizes. Is there a 'correct' way to make it line up?

  • Figured it out, for those that come this way again:

    1. Don't use OVRBody

    2. Use OVRBodyFromPose as sibling of OVRCameraRig

    3. Remove its OVR Body Pose Skeleton Provider script

    4. Add OVR Body script