You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Currently: In a WebXR immersive mode, when I push on the Oculus quest joy stick, I see an arc appear over valid teleportation targets. And I do not see an arc or target appear for any surfaces where it is not possible to teleport. However there is a 3rd state: show locations where it is theoretically possible to teleport to, but are disabled right now due to some game state.
For example in the game Arizona Sunshine, it uses a white teleportation arc when we are allowed to move. But when players move too far from each other, or when surrounded by attacking zombies, the teleportation arc and target are rendered in red to show you that the move is theoretically possible, but temporarily disabled you must solve the task at hand before you can continue to that spot.
Describe the solution you'd like
A clear and concise description of what you want to happen.
As a developer, I would like to have something like a function callback where the teleportation target position is passed to my custom function and if my function returns true, we render the regular arc color and the teleportation is allowed to continue. If instead my custom function returns false, then the arc color is rendered in red and the teleportation is denied and does not happen.
One use case of this is to allow players to teleport closer to each other when they get too far, but not teleport farther from each other based on calculating the distance between players before a teleportation occurs. In addition I can use that function to flash a message like "Stay closer to survive zombies!"
Discussion
You must provide a link to the forum post where the initial discussion happened
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Currently: In a WebXR immersive mode, when I push on the Oculus quest joy stick, I see an arc appear over valid teleportation targets. And I do not see an arc or target appear for any surfaces where it is not possible to teleport. However there is a 3rd state: show locations where it is theoretically possible to teleport to, but are disabled right now due to some game state.
For example in the game Arizona Sunshine, it uses a white teleportation arc when we are allowed to move. But when players move too far from each other, or when surrounded by attacking zombies, the teleportation arc and target are rendered in red to show you that the move is theoretically possible, but temporarily disabled you must solve the task at hand before you can continue to that spot.
Describe the solution you'd like
A clear and concise description of what you want to happen.
As a developer, I would like to have something like a function callback where the teleportation target position is passed to my custom function and if my function returns true, we render the regular arc color and the teleportation is allowed to continue. If instead my custom function returns false, then the arc color is rendered in red and the teleportation is denied and does not happen.
One use case of this is to allow players to teleport closer to each other when they get too far, but not teleport farther from each other based on calculating the distance between players before a teleportation occurs. In addition I can use that function to flash a message like "Stay closer to survive zombies!"
Discussion
You must provide a link to the forum post where the initial discussion happened
https://forum.babylonjs.com/t/webxr-teleportation-questions-feature-requests/14894/7
The text was updated successfully, but these errors were encountered: