VR Interaction Framework  1.0
A vr framework for the Oculus Quest
BNG.PlayerTeleport Class Reference

A basic Teleport script that uses a parabolic arc to determine teleport location More...

Inheritance diagram for BNG.PlayerTeleport:

Public Member Functions

void EnableTeleportation ()
 
void DisableTeleportation ()
 
bool IsAiming ()
 

Public Attributes

Color ValidTeleport = Color.green
 
Color InvalidTeleport = Color.red
 
Grabber LeftHandGrabber
 
Grabber RightHandGrabber
 
Transform TeleportBeginTransform
 
Transform TeleportDestination
 
GameObject TeleportMarker
 
Transform DirectionIndicator
 
float MaxRange = 20f
 
int SegmentCount = 100
 
float simulationVelocity = 500f
 
float segmentScale = 0.5f
 
LayerMask CollisionLayers
 
LayerMask ValidLayers
 
TeleportControls ControlType = TeleportControls.Thumbstick
 
bool AllowTeleportRotation = true
 
float MaxSlope = 60f
 
LineRenderer TeleportLine
 

Detailed Description

A basic Teleport script that uses a parabolic arc to determine teleport location

Member Function Documentation

◆ DisableTeleportation()

void BNG.PlayerTeleport.DisableTeleportation ( )

◆ EnableTeleportation()

void BNG.PlayerTeleport.EnableTeleportation ( )

◆ IsAiming()

bool BNG.PlayerTeleport.IsAiming ( )

Member Data Documentation

◆ AllowTeleportRotation

bool BNG.PlayerTeleport.AllowTeleportRotation = true

◆ CollisionLayers

LayerMask BNG.PlayerTeleport.CollisionLayers

◆ ControlType

TeleportControls BNG.PlayerTeleport.ControlType = TeleportControls.Thumbstick

◆ DirectionIndicator

Transform BNG.PlayerTeleport.DirectionIndicator

◆ InvalidTeleport

Color BNG.PlayerTeleport.InvalidTeleport = Color.red

◆ LeftHandGrabber

Grabber BNG.PlayerTeleport.LeftHandGrabber

◆ MaxRange

float BNG.PlayerTeleport.MaxRange = 20f

◆ MaxSlope

float BNG.PlayerTeleport.MaxSlope = 60f

◆ RightHandGrabber

Grabber BNG.PlayerTeleport.RightHandGrabber

◆ SegmentCount

int BNG.PlayerTeleport.SegmentCount = 100

◆ segmentScale

float BNG.PlayerTeleport.segmentScale = 0.5f

◆ simulationVelocity

float BNG.PlayerTeleport.simulationVelocity = 500f

◆ TeleportBeginTransform

Transform BNG.PlayerTeleport.TeleportBeginTransform

◆ TeleportDestination

Transform BNG.PlayerTeleport.TeleportDestination

◆ TeleportLine

LineRenderer BNG.PlayerTeleport.TeleportLine

◆ TeleportMarker

GameObject BNG.PlayerTeleport.TeleportMarker

◆ ValidLayers

LayerMask BNG.PlayerTeleport.ValidLayers

◆ ValidTeleport

Color BNG.PlayerTeleport.ValidTeleport = Color.green

The documentation for this class was generated from the following file: