11-20-2023 07:59 AM
Hello all. I am quite new to developing for VR, and have been attempting to work through the tutorials Meta gives for Quest 2 development using Unity (I am using 2022.3.7f1). I did the Playground Tutorials (https://developer.oculus.com/documentation/unity/unity-tutorial-basic-controller-input/) to set up hand tracking and using controllers, and want to move on to locomotion.
I acquired the Locomotion sample, and I can get it compiled and running on my quest 2 and everything works as it should. However, I can not get the Create Locomotion Interactions tutorial working on my project or figure out how to apply what is in the sample to my project.
I followed the parts for the tutorial to try to accomplish locomotion with my Right hand (I can move onto Left hand and controller locomotion once this aspect is working) - which involves adding LocomotionHandInteractorGroup to your hand, creating a Locomotion GameObject, and copying in some mesh files from the Locomotion Sample. As far as I can tell, everything I have added to my scene matches the equivalent piece in the sample (and it looks like I am aligned with what the tutorial is asking of me as well.) However, when I try to run my project on my quest it's as if nothing has changed or anything has been added - the right hand does not let me move around the world. No animations show up (this is what happens in the Sample), it's as if the code needed to do locomotion simply isn't in the project.
I have attached a screengrab below, demonstrating the structure of my scene, and also what LocomotionHandInteractorGroup looks like. Aside from that, everything else should match what comes out of the default tutorial.
One cause I thought of might be that in the Locomotion tutorial, it asks you to set the "Active State Finger Visual component". However, I cannot tell where I am meant to do this. Furthermore, I cannot find anything resembling this in the Locomotion Sample Scene. Can someone please explain where this can be found in the Sample scene, or what this will do?
I have also tried bringing over the "Tutorial" part of the sample scene, and even this has no apparent effect on my scene.
If anyone has any advice, or if I can post more details, please let me know. I am happy to share my scene as well if that is helpful