MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Teleport or move the cam w/o the parabolic teleport pointer

Open istvanContXtual opened this issue 4 years ago • 1 comments

Hi,

Is there a way to teleport or move the camera without the parabolic teleport pointer?

I am trying to create a map or toolbelt based system, where i can just press a button in a ui panel and move the camera top a pre defined location in the world.

Tried CoreServices.TeleportSystem.RaiseTeleportRequest(pointer, teleportHotspot); but does not seem to be working.

Any help/suggestion is much appreciated!

Using MRTK 2.7.x and Unity 2020.3.LTS

istvanContXtual avatar Jan 21 '22 22:01 istvanContXtual

This code block might be what you're looking for.

https://github.com/microsoft/MixedRealityToolkit-Unity/blob/cb7b4c9349c58b731af015df94ac3e383771effa/Assets/MRTK/SDK/Features/UX/Scripts/Pointers/TeleportPointer.cs#L278-L293

Essentially move the playspace and that should allow for the camera to move without having to raise teleports or other such things

RogPodge avatar Jan 24 '22 22:01 RogPodge