Teleport

  • Abstract class

Protected fields

LocomotionSystem locomotionSystem

HandSkeleton handSkeleton

RayVisuals rayVisuals

GameObject teleportReticle

float inputConfidenceThreshold

float maxTeleportRayDistance

LayerMask ignoreLayers

UnityEvent onTeleported

TeleportDestination teleportDestination

TeleportRayInteractor teleportRayInteractor

Transform handPalm

Transform indexFingerTip

Transform teleportReticleTransform

Transform teleportRayStart

bool isTeleportAllowed

Protected methods

virtual void CheckForTeleportDestination()

  • Override it and add your logic to finding teleport destinations

void TeleportPlayer()

  • Teleports player to TeleportDestination location

void ResetTeleportVariables()

void ActivateTeleportReticle()

Last updated