Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

I can't teleport using the waypoint-link method #6482

Open sgaset opened 7 months ago

sgaset commented 7 months ago

Hi! I'm having trouble teleporting in Spoke. I'm using the waypoint and link modes, following these instructions: I name a waypoint 'door' and then tell the link to connect through the URL '#door', so that when I click on the said link, I'm teleported to the 'door' waypoint. The problem is that out of 20 connections of this type that I've created, only 6 work. They were all created by duplicating the previous link, so the base settings are identical, and I can't find answers to solve the problem on the web. Does anybody know what to do to solve this?

Exairnous commented 7 months ago

Hey o/ The teleporting system definitely has some quirks. What you describe sounds like something I've run into before and the solution was to make sure that your waypoint names are unique (not just unique compared to other waypoints but unique compared to every other element in your scene). From my notes:

Waypoint teleportation links attempt to teleport you to the first element with that name in the Spoke hierarchy and if it isn't a waypoint it will fail e.g. a waypoint with name ‘X’ and then an image with name ‘X’ will work, but an image with name ‘X’ followed by a waypoint with name ‘X’ will fail, same with parent child relationships if you have waypoint ‘X’ as part of group ‘X’ it will fail. The easiest way to solve this is to make sure the waypoint names are unique.