rbennett22
9 years agoExplorer
In Unity: How to make OVRAvatar play nicely with OVRPlayerController?
I recently obtained my Oculus Touch Controllers and am attempting to integrate OVRAvatar with OVRPlayerController (in Unity). The downloadable OVRAvatar samples work correctly for me, however if I child the OVRCameraRig to an OVRPlayerController, I can no longer see the avatar hands.
One partial solution I found is to child the OVRAvatar GameObject to the OVRPlayerController GameObject. However the hands then do not render in the correct positions under certain circumstances, such as when OVRPlayerController's "Use Profile Data" property is checked, or if OVRPlayerController's "HMD Rotates Y" property is checked.
So I am wondering if there is a better way to allow the avatar to correctly follow the player as they move?
Please let me know if I should provide any other helpful details about my setup or what I have tried.
One partial solution I found is to child the OVRAvatar GameObject to the OVRPlayerController GameObject. However the hands then do not render in the correct positions under certain circumstances, such as when OVRPlayerController's "Use Profile Data" property is checked, or if OVRPlayerController's "HMD Rotates Y" property is checked.
So I am wondering if there is a better way to allow the avatar to correctly follow the player as they move?
Please let me know if I should provide any other helpful details about my setup or what I have tried.
- Have you set your LocalAvatar to a child of tracking space?
I have it working with
OVRPlayerController
OVRCameraRig
TrackingSpace
LocalAvatar
Hope that helps - SOLVED. Making the LocalAvatar a child to TrackingSpace works for me.
P.S. It turns out the main issue I'm having is related to loading additional scenes. I'm looking into solutions to this issue, and will post on a separate thread if I have additional Q's or beneficial findings.
EDIT: I have posted about the main issue I am having here:
https://forums.oculus.com/developer/discussion/47780/ovravatar-rendered-parts-freeze-upon-loading-new-scene-when-using-dontdestroyonload/p1?new=1
Thanks!