VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Motion.AVR_MovementProvider.Update ( )
inlineprivate

Definition at line 91 of file AVR_MovementProvider.cs.

91  {
92 #if AVR_NET
93  if (IsOnline && !IsOwner) return;
94 #endif
95  // Show/hide ray depending on given enable event
97  ray.show();
98  }
99  else {
100  ray.hide();
101  }
102 
103  // Begin teleport if execute event
106  }
107 
108  // A dash-movement should be continously updated. We do that here.
110  float t = Time.time - dash_stime;
111  float inter =(t*dash_speed) / (Vector3.Distance(dash_origin, destination));
112  MoveRigToFeetLocation(Vector3.Lerp(dash_origin, destination, inter));
113  if(inter >= 1.0f) {
114  tp_in_progress = false;
115  }
116  }
117  }
AVR_ControllerInputManager inputManager
the AVR_ControllerInputManager assigned to this controller. Returns null if no inputmanager is assign...
AVR_ControllerInputManager.BoolEvent Execute_event
Event which (if possible) executes the movement to target location. Can only ocurr if the ray is visi...
AVR_ControllerInputManager.BoolEvent Enable_event
Event which enables/shows the teleportation-ray.
TeleportModes
Modes of teleportation/movement. INSTANT: Instantly moves to the target position FADE_COLOR: Fades th...
AVR_MovementRay ray
Ray which is displayed to target a location.
bool getEventStatus(BoolEvent type)
Returns the status of a given BoolEvent
RaycastHit hitPosition
Raycasthit where the ray hit something. Contains the last hit the ray did if AVR_SolidRay.objectHit is false. null if the ray hasn't hit a single object in its lifetime. /summary>
Definition: AVR_SolidRay.cs:25
TeleportModes teleportMode
Modes of teleportation/movement. INSTANT: Instantly moves to the target position FADE_COLOR: Fades th...
float dash_speed
When using DASH or FADE_DASH, this determines the speed (in units/s) we travel towards the target loc...
bool objectHit
True if the ray hit some object this frame. Use AVR_SolidRay.hitPosition to get the respective Raycas...
Definition: AVR_SolidRay.cs:32
void CommenceTeleport(Vector3 targetLocation)
Begins a movement towards target location
bool isVisible
Is this ray visible
Definition: AVR_Ray.cs:56