Closed SimonDarksideJ closed 3 years ago
What platform were you testing this out on?
ALL of them. Primarily WMR, Oculus and OpenVR
Works correctly on WMR && Lumin last I checked. I wonder if it's updating the position even though you've let go and continued to move your hand?
I did make some changes in #517 to the Teleport system to ensure we're at least using the correct height
There is a possibility that the movement is picking up / changing based on the letting go of the thumbstick, but no matter how careful I am, it does. Might try changing the teleport action to a button to verify.
But ultimately, this shouldn't happen, the place the pointer is when you let go should be the location you land.
Yeah I think some verification tests should do the trick.
I was thinking about putting a small sphere in the place the user lets go and the pointer position recorded. Then once the teleport is finished looking down to see how close you came.
As you can see in the video, sometimes quite far away, orientation seems to matter and direction. The landing offset does seem exponential
One possibility is that we're using the wrong frame of reference to do our calculations from.
Maybe using a world space position instead of a local one or vice versa?
I bet it's this line:
cameraParent.RotateAround(cameraPosition, Vector3.up, targetRotation.y - cameraTransform.eulerAngles.y);
In most cases, I'm not rotating when I teleport to replicate the issue. But I'm firing up to test with the Camera system PR Surely the "target" should be where the raycast collides with the surface?
Updated the issue log @StephenHodgson , used a hotspot as the target and differentiation is clearer.
User should at least land in the hotspot zone, but no. make sure you test from different angles
I am picking this up
XRTK - Mixed Reality Toolkit Bug Report
Describe the bug
Currently, when a user teleports to a location, their landing spot is not where they selected, for example
GIF of this happening in the editor
To Reproduce
Additional replication
Expected behavior
Teleport should land where they selected
Additional notes
Teleport system is a mess :D and needs an overhaul. Could not assign the teleport activity to a button. Post 0.2 change to teleport system.