Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Dynamic Anchor Point for Teleportation Anchor

Discussion in 'XR Interaction Toolkit and Input' started by enemali, Feb 18, 2021.

  1. enemali

    enemali

    Joined:
    May 29, 2017
    Posts:
    17
    In Xr interaction toolkit Teleportation Anchor ,how can I make the the Anchor dynamic so the Anchor will always be where the teleportion Ray is because currently I can only teleport to the centre of the Teleportation Anchor, I know I can use the Teleportation Area option but I will like to also have an Anchor so that the player can orient to any direction
     
  2. chris-massie

    chris-massie

    Unity Technologies

    Joined:
    Jun 23, 2020
    Posts:
    220
    You can override
    TeleportationAnchor.GenerateTeleportRequest
    and use the
    raycastHit.point
    like the
    TeleportationArea
    does instead of the anchor transform.
     
  3. JTAGames

    JTAGames

    Joined:
    Mar 7, 2019
    Posts:
    13
    I'm not sure what XR is but we show you how to make a dynamic anchor for our teleportation function and it should work in your XR thing as well.



    You'd probably have to watch the whole video to integrate it but I feel like it'll be worth it as the video is only 9 minutes.