VR Interaction Framework
1.0
A vr framework for the Oculus Quest
|
A basic Teleport script that uses a parabolic arc to determine teleport location More...
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 |
A basic Teleport script that uses a parabolic arc to determine teleport location
void BNG.PlayerTeleport.DisableTeleportation | ( | ) |
void BNG.PlayerTeleport.EnableTeleportation | ( | ) |
bool BNG.PlayerTeleport.IsAiming | ( | ) |
bool BNG.PlayerTeleport.AllowTeleportRotation = true |
LayerMask BNG.PlayerTeleport.CollisionLayers |
TeleportControls BNG.PlayerTeleport.ControlType = TeleportControls.Thumbstick |
Transform BNG.PlayerTeleport.DirectionIndicator |
Color BNG.PlayerTeleport.InvalidTeleport = Color.red |
Grabber BNG.PlayerTeleport.LeftHandGrabber |
float BNG.PlayerTeleport.MaxRange = 20f |
float BNG.PlayerTeleport.MaxSlope = 60f |
Grabber BNG.PlayerTeleport.RightHandGrabber |
int BNG.PlayerTeleport.SegmentCount = 100 |
float BNG.PlayerTeleport.segmentScale = 0.5f |
float BNG.PlayerTeleport.simulationVelocity = 500f |
Transform BNG.PlayerTeleport.TeleportBeginTransform |
Transform BNG.PlayerTeleport.TeleportDestination |
LineRenderer BNG.PlayerTeleport.TeleportLine |
GameObject BNG.PlayerTeleport.TeleportMarker |
LayerMask BNG.PlayerTeleport.ValidLayers |
Color BNG.PlayerTeleport.ValidTeleport = Color.green |