Skip to main content
Inspiring
September 14, 2023
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?

 

This topic has been closed for replies.
Inspiring
September 16, 2023

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

Inspiring
September 14, 2023

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?

kennardconsultingAuthorAnswer
Inspiring
September 16, 2023

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