Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebXR Teleportation Arc Disabled Check #9402

Closed
homanchou opened this issue Nov 13, 2020 · 0 comments · Fixed by #10158
Closed

WebXR Teleportation Arc Disabled Check #9402

homanchou opened this issue Nov 13, 2020 · 0 comments · Fixed by #10158
Assignees
Labels
Milestone

Comments

@homanchou
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants