Unity VR-Locomotion Continued

<p>As of what we&rsquo;ve done through our Locomotion project so far, the issue we currently have is that the Ray Interactor and the Teleport Interactor are both teleporting us.</p> <p>What we want to accomplish is to have the Teleport Interactor exclusively interact with Teleport-related objects while the Ray Interactor can interact with everything else. Good thing we have our handy dandy XR Interaction Toolkit.</p> <p>When you&rsquo;ve chosen the Teleport Interactor Object and are in the Inspector, under XR Ray Interactor, you&rsquo;ll notice a section labeled &ldquo;Interaction Layer Mask.&rdquo; Within this section, there&rsquo;s a dropdown menu that offers you the flexibility to select the specific layer you want the Teleport Interactor to interact with and also decide which layers to ignore.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:415/1*MbhX14de91bl-cz_5J_-Rw.png" style="height:343px; width:415px" /></p> <p><em>Note: You may have to create new layers to define what you want to be the Teleportation layer.</em></p> <p>I have a Teleportation Anchor in my scene and I&rsquo;ve created a Teleportation Layer. To enable the teleportation, I have to change the Interaction Layer Mask on the Teleport Anchor to the Teleport Layer.</p> <p><a href="https://medium.com/@kennethmclachlan11/unity-vr-locomotion-continued-e4c55105512d"><strong>Click Here</strong></a></p>
Tags: VR Locomotion