![]() |
VR Interaction Framework v2.0
|
A basic Teleport script that uses a parabolic arc to determine teleport location. More...
Public Member Functions | |
delegate void | OnBeforeTeleportFadeAction () |
delegate void | OnBeforeTeleportAction () |
delegate void | OnAfterTeleportAction () |
void | DoCheckTeleport () |
void | TryOrHideTeleport () |
void | EnableTeleportation () |
void | DisableTeleportation () |
virtual void | BeforeTeleportFade () |
This is called immediately before fade is called and before BeforeTeleport has fired. | |
virtual void | BeforeTeleport () |
virtual void | AfterTeleport () |
void | TeleportPlayer (Vector3 destination, Quaternion rotation) |
void | TeleportPlayerToTransform (Transform destination) |
virtual bool | KeyDownForTeleport () |
virtual bool | KeyUpFromTeleport () |
Public Attributes | |
LineRenderer | TeleportLine |
Color | ValidTeleport = Color.green |
Color | InvalidTeleport = Color.red |
ControllerHand | HandSide = ControllerHand.Left |
Transform | TeleportBeginTransform |
Transform | TeleportBeginTransformAlt |
Transform | TeleportDestination |
TeleportDestination | DestinationObject |
GameObject | TeleportMarker |
Transform | DirectionIndicator |
float | MaxRange = 20f |
int | SegmentCount = 1000 |
float | SimulationVelocity = 500f |
float | SegmentScale = 0.01f |
LayerMask | CollisionLayers |
LayerMask | ValidLayers |
TeleportControls | ControlType = TeleportControls.ThumbstickRotate |
InputActionReference | InitiateTeleportAction |
bool | AllowTeleportRotation = true |
bool | ForceStraightArrow = false |
float | MaxSlope = 60f |
float | TeleportYOffset = 0f |
bool | FadeScreenOnTeleport = true |
float | TeleportFadeSpeed = 10f |
float | TeleportDelay = 0.2f |
PhysicMaterial | FrictionMaterial |
Protected Member Functions | |
virtual void | calculateParabola () |
virtual bool | teleportClear () |
virtual void | hideTeleport () |
virtual void | updateTeleport () |
virtual void | rotateMarker () |
virtual void | tryTeleport () |
Protected Attributes | |
bool | aimingTeleport = false |
bool | validTeleport = false |
bool | teleportationEnabled = true |
Properties | |
bool | AimingTeleport [get] |
Events | |
static OnBeforeTeleportFadeAction | OnBeforeTeleportFade |
static OnBeforeTeleportAction | OnBeforeTeleport |
static OnAfterTeleportAction | OnAfterTeleport |
A basic Teleport script that uses a parabolic arc to determine teleport location.
|
virtual |
|
virtual |
|
virtual |
This is called immediately before fade is called and before BeforeTeleport has fired.
|
protectedvirtual |
void BNG.PlayerTeleport.DisableTeleportation | ( | ) |
void BNG.PlayerTeleport.DoCheckTeleport | ( | ) |
void BNG.PlayerTeleport.EnableTeleportation | ( | ) |
|
protectedvirtual |
|
virtual |
|
virtual |
delegate void BNG.PlayerTeleport.OnAfterTeleportAction | ( | ) |
delegate void BNG.PlayerTeleport.OnBeforeTeleportAction | ( | ) |
delegate void BNG.PlayerTeleport.OnBeforeTeleportFadeAction | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
void BNG.PlayerTeleport.TeleportPlayer | ( | Vector3 | destination, |
Quaternion | rotation | ||
) |
void BNG.PlayerTeleport.TeleportPlayerToTransform | ( | Transform | destination | ) |
void BNG.PlayerTeleport.TryOrHideTeleport | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
bool BNG.PlayerTeleport.AllowTeleportRotation = true |
LayerMask BNG.PlayerTeleport.CollisionLayers |
TeleportControls BNG.PlayerTeleport.ControlType = TeleportControls.ThumbstickRotate |
TeleportDestination BNG.PlayerTeleport.DestinationObject |
Transform BNG.PlayerTeleport.DirectionIndicator |
bool BNG.PlayerTeleport.FadeScreenOnTeleport = true |
bool BNG.PlayerTeleport.ForceStraightArrow = false |
PhysicMaterial BNG.PlayerTeleport.FrictionMaterial |
ControllerHand BNG.PlayerTeleport.HandSide = ControllerHand.Left |
InputActionReference BNG.PlayerTeleport.InitiateTeleportAction |
Color BNG.PlayerTeleport.InvalidTeleport = Color.red |
float BNG.PlayerTeleport.MaxRange = 20f |
float BNG.PlayerTeleport.MaxSlope = 60f |
int BNG.PlayerTeleport.SegmentCount = 1000 |
float BNG.PlayerTeleport.SegmentScale = 0.01f |
float BNG.PlayerTeleport.SimulationVelocity = 500f |
|
protected |
Transform BNG.PlayerTeleport.TeleportBeginTransform |
Transform BNG.PlayerTeleport.TeleportBeginTransformAlt |
float BNG.PlayerTeleport.TeleportDelay = 0.2f |
Transform BNG.PlayerTeleport.TeleportDestination |
float BNG.PlayerTeleport.TeleportFadeSpeed = 10f |
LineRenderer BNG.PlayerTeleport.TeleportLine |
GameObject BNG.PlayerTeleport.TeleportMarker |
float BNG.PlayerTeleport.TeleportYOffset = 0f |
LayerMask BNG.PlayerTeleport.ValidLayers |
Color BNG.PlayerTeleport.ValidTeleport = Color.green |
|
protected |
|
get |
|
static |
|
static |
|
static |