-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Teleporting up and down changes base height #1181
Comments
Having the same problem. Needs a Body Physics implementation similar to that of VRTK Body Physics. |
Ahh, hmm. The attempt at preserving height during a teleport is done by raycasting straight down from the camera right before the teleport. I could see a situation where you've teleported on top of a taller object, moved your head to no longer be directly over the object, and then teleported again, which would raycast past the object and back to the floor (or otherwise something at a different height). A better height detection method would be preferable. Thinking about it, an app in RoomScale might no longer need to check height, since Y = 0 becomes real-world floor level. Stationary space-type apps will still need something though. |
If its true that a raycast from the head measures the height every time a teleport occurs, then I'm wondering why, once the height is off, it stays off? |
Once you teleport and your head stays at that (wrong) height, you're now that height above the floor (or whatever you teleported on). Any subsequent teleports/raycasts will calculate the same height. |
Just one question. Will it be or is it possible to get the height of the HMD above the ground from windows? Or is that something you guys are working on? |
Ok, I fixed the height issue by changing two methods in MixedRealityTeleport.cs:
|
Changing heights by teleporting onto colliders with different heights eventually changes the overall base height. This results in floating in air or stuck in the ground. It's not very predictable when this happens (last time it worked properly 3 times teleporting, but failed the forth time trying to get from a sofa onto the floor and staying at sofa level)
The text was updated successfully, but these errors were encountered: