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

Feature request: ability to turn around #43

Open
createthis opened this issue Feb 15, 2017 · 5 comments
Open

Feature request: ability to turn around #43

createthis opened this issue Feb 15, 2017 · 5 comments

Comments

@createthis
Copy link

The Oculus Touch has been out for a while and SteamVR supports it just fine. I have a Vive and a Touch rig and I've noticed that teleporting with the Touch requires the ability to turn around somehow. With the Vive you can just physically turn around, but with the Touch you can't turn your back to the camera or you lose tracking.

Through experience and experimentation, I've come up with two possible solutions for this problem:

  1. We could swipe the touchpad (joystick on the Touch) to rotate the teleport facing direction. This is how The Gallery handles it. This solution would require a heading indicator on the teleport circle at the end of the arc.

  2. We could possibly handle heading changes by looking in a different direction, teleporting, and using the rotational delta between forward and the direction the user is looking to rotate the camera after teleporting.

I'm not sure how to implement either of these in the code base. Pointers and ideas welcome.

@createthis
Copy link
Author

This looks like the point where the teleport happens:

OriginTransform.position = Pointer.SelectedPoint + offset;

@createthis
Copy link
Author

I implemented #2 and it was pretty confusing. On further thought, I think a variation on #1 might be best. However, instead of swiping or moving the joystick while clicking it, I think it makes more sense to hold the trigger while clicking the joystick/touchpad and rotate the controller to change the teleport rotation direction.

@createthis
Copy link
Author

@Flafla2 See PR #45

@createthis
Copy link
Author

This works if you face in the direction of the arrow, initially, but it stops making sense if you turn around so you're facing in the opposite direction of the arrow. I clearly need to take the rotation of the HMD into account, not just the camerarig. I'll spend some more time on it tomorrow.

@createthis
Copy link
Author

@Flafla2 I updated the PR to take the head transform into account. Also, cancel the custom rotation after the first teleport. This feels pretty good. Let me know what you think.

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

No branches or pull requests

2 participants