VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Types | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
AVR.Motion.AVR_TurnProvider Class Reference

Provides turning functionality to a controller. More...

Inheritance diagram for AVR.Motion.AVR_TurnProvider:
AVR.Core.AVR_ControllerComponent AVR.Core.AVR_Component AVR.Core.AVR_Behaviour

Public Types

enum  turnMode { turnMode.SNAP, turnMode.SMOOTH }
 Mode of turning. Snap will instantly turn by a given amount while smooth is a continous turn over time More...
 

Public Attributes

turnMode mode
 Mode of turning. Snap will instantly turn by a given amount while smooth is a continous turn over time More...
 
AVR_ControllerInputManager.BoolEvent turnEvent
 Event on which a turn is performed. More...
 
AVR_ControllerInputManager.FloatEvent turnDirection
 Float value that determines the direction of the turn. More...
 
float snp_rotationAmount = 45
 If the mode is set to snap, the amount of rotation (in degrees) is determined by this value More...
 
float snp_cooldown = 0.5f
 If the mode is set to snap, this determines the amount of time (in seconds) that has to pass between turns More...
 
float smt_rotationSpeed = 45
 If the mode is set to smooth, this determines the speed of rotation (id deg/s) More...
 
- Public Attributes inherited from AVR.Core.AVR_Component
UnityEngine.Events.UnityEvent onAwake
 Events called when this component awakes. More...
 
UnityEngine.Events.UnityEvent onStart
 Events called when this component starts. More...
 
UnityEngine.Events.UnityEvent onEnable
 Events called when this component is enabled. More...
 
UnityEngine.Events.UnityEvent onDisable
 Events called when this component is disabled. More...
 

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from AVR.Core.AVR_Component
virtual void Start ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Private Member Functions

void Update ()
 

Private Attributes

float stime
 

Additional Inherited Members

- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 
- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 
- Properties inherited from AVR.Core.AVR_ControllerComponent
AVR_Controller controller [get, set]
 

Detailed Description

Provides turning functionality to a controller.

Definition at line 15 of file AVR_TurnProvider.cs.