Forum Discussion
Gamerprime
1 year agoExplorer
Interaction SDK Locomotion Issues
Hi,
Could someone please explain the LocomotionExamples scene in greater detail? The specific problem that I am having is that I want to allow my players to teleport anywhere in the environment. According to this link, I just need to copy over the NavMeshHotspotWalkable and HotspotVoidFloor objects over to my scene and teleport should work. I also copied the rig from the example scene to my project.
In my scene, teleport appears as if it is going to work, however, anywhere I try to teleport in my scene has a red "X" and I am not allowed to teleport. Any ideas?
Big_FlexI saw on another post that you work on the Interaction SDK team. Any ideas why this is happening? I'd appreciate any help 🙂
Hi Gamerprime, thanks for tagging me! Please feel free to keep tagging me in any future Interaction SDK questions you have.
Here's the process you need to follow assuming you already have a rig in your scene. I'll also add this process to the official doc you linked.
- Copy the NavMeshHotspotWalkable and HotspotVoidFloor GameObjects from the LocomotionExamples scene into your scene.
Your Hierarchy should look like this. - Under Hierarchy, select the HotspotVoidFloor GameObject.
- Under Inspector, in the Transform component, set the Y value to -0.2. This lowers the GameObject beneath the plane you'll add in the next step to act as a floor. If you don't change the Y value, HotspotVoidFloor will block the teleport ray from reaching the plane.
- Add a plane to the Hierarchy by right-clicking in the Hierarchy and selecting 3D Object > Plane from the menu. This plane will act as the floor.
- (Optional) Drag and drop a dark material onto the plane so it's easier to see where your teleport cursor is pointing later on.
- Under Hierarchy, select Plane.
- Under Inspector, in the Transform component, set the Y value to 0 to lower the plane so it'll be closer to your feet later on.
Here's what my Hierarchy and Scene look like at this point. - Under Hierarchy, make sure the Plane GameObject is still selected.
- In the toolbar at the top of the Unity editor, go to Window > AI > Navigation (Obsolete).
- In the Object subtab, enable the Navigation Static checkbox.
- In the Bake subtab, click the Bake button.
A blue navmesh appears in the viewport on the surface of the plane. Here's what mine looks like.
- Prepare to launch your scene by going to File > Build Settings and clicking the Add Open Scenes button.
Your scene is now ready to build. - Select File > Build and Run.
The scene loads. You can teleport anywhere on the surface of the plane.
- Copy the NavMeshHotspotWalkable and HotspotVoidFloor GameObjects from the LocomotionExamples scene into your scene.
2 Replies
- Big_FlexMeta Employee
Hi Gamerprime, thanks for tagging me! Please feel free to keep tagging me in any future Interaction SDK questions you have.
Here's the process you need to follow assuming you already have a rig in your scene. I'll also add this process to the official doc you linked.
- Copy the NavMeshHotspotWalkable and HotspotVoidFloor GameObjects from the LocomotionExamples scene into your scene.
Your Hierarchy should look like this. - Under Hierarchy, select the HotspotVoidFloor GameObject.
- Under Inspector, in the Transform component, set the Y value to -0.2. This lowers the GameObject beneath the plane you'll add in the next step to act as a floor. If you don't change the Y value, HotspotVoidFloor will block the teleport ray from reaching the plane.
- Add a plane to the Hierarchy by right-clicking in the Hierarchy and selecting 3D Object > Plane from the menu. This plane will act as the floor.
- (Optional) Drag and drop a dark material onto the plane so it's easier to see where your teleport cursor is pointing later on.
- Under Hierarchy, select Plane.
- Under Inspector, in the Transform component, set the Y value to 0 to lower the plane so it'll be closer to your feet later on.
Here's what my Hierarchy and Scene look like at this point. - Under Hierarchy, make sure the Plane GameObject is still selected.
- In the toolbar at the top of the Unity editor, go to Window > AI > Navigation (Obsolete).
- In the Object subtab, enable the Navigation Static checkbox.
- In the Bake subtab, click the Bake button.
A blue navmesh appears in the viewport on the surface of the plane. Here's what mine looks like.
- Prepare to launch your scene by going to File > Build Settings and clicking the Add Open Scenes button.
Your scene is now ready to build. - Select File > Build and Run.
The scene loads. You can teleport anywhere on the surface of the plane.
- GamerprimeExplorer
This worked for me. Thanks!
- Copy the NavMeshHotspotWalkable and HotspotVoidFloor GameObjects from the LocomotionExamples scene into your scene.
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
- 5 months ago
- 2 years ago