> For the complete documentation index, see [llms.txt](https://spectrexr.gitbook.io/octoxr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spectrexr.gitbook.io/octoxr/locomotion/scripting/teleport.md).

# 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()
