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

How to enable teleportation? #47

Open
medinags opened this issue Feb 21, 2022 · 5 comments
Open

How to enable teleportation? #47

medinags opened this issue Feb 21, 2022 · 5 comments

Comments

@medinags
Copy link

Hello,
Thank you for this very useful package.
I am new to WebGL, but I have some experience with MRTK.
I am trying to use teleportation in the Oculus browser. But I can't get it to work.
In MixedRealityToolkit it is active.

image

Do I have to do something else to activate it?
Merci!

@Rufus31415
Copy link
Owner

SimpleWebXR inputs support teleportation.

new MixedRealityInteractionMapping(5, "Teleport Pose", AxisType.SixDof, DeviceInputType.Thumb, new MixedRealityInputAction(14, "Teleport Pose", AxisType.SixDof)),

new MixedRealityInteractionMapping(5, "Teleport Pose", AxisType.SixDof, DeviceInputType.Thumb, new MixedRealityInputAction(14, "Teleport Pose", AxisType.SixDof)),

But it seems to me that you have to select a teleportation compatible pointer

@medinags
Copy link
Author

Hello,
Thank you for replying
In inputs I have the SimpleWebXR profile
image
And I have this as a Pointer
image
Do I have to select another one?

@Rufus31415
Copy link
Owner

OK, everything seems ok, if you find what's going on, can you tell me ?

@medinags
Copy link
Author

medinags commented Feb 23, 2022

I'm testing the scene MRTK-HandInteraction

There is a script called "OculusQuestThumstickHandler.cs". That is supposed to execute the teleportation, but what it does is to move the player.

MixedRealityPlayspace.Transform.Translate(- Vector3.forward * Time.deltaTime * NOMINAL_TRANSLATION_SPEED * axe3, Camera.main.transform);

Another thing, did you test the teleportation in this scene, or should it be added from a new script?

@Rufus31415
Copy link
Owner

Yes this is just a workaround to move the player. But it doesn't use MRTK teleport feature.

Yes I tested teleportation, but I don't think there are any examples online that show this

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

No branches or pull requests

2 participants