Forum Discussion
kennard-consulting
2 years agoExpert Protege
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
- kennard-consultingExpert Protege
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?
- kennard-consultingExpert Protege
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 9 months ago
- 2 years ago
- 6 months ago