VR Interaction Framework v2.0
Loading...
Searching...
No Matches
BNG.LocomotionManager Class Reference
Inheritance diagram for BNG.LocomotionManager:

Public Member Functions

virtual void CheckControllerToggleInput ()
 
void OnLocomotionToggle (InputAction.CallbackContext context)
 
void LocomotionToggle ()
 
void UpdateTeleportStatus ()
 
void ChangeLocomotion (LocomotionType locomotionType, bool save)
 
void ChangeLocomotionType (LocomotionType loc)
 
void ToggleLocomotionType ()
 

Public Attributes

LocomotionType DefaultLocomotion = LocomotionType.Teleport
 Default locomotion to use if nothing stored in playerprefs. 0 = Teleport. 1 = SmoothLocomotion.
 
bool LoadLocomotionFromPrefs = false
 If true, locomotion type will be saved and loaded from player prefs.
 
List< ControllerBindinglocomotionToggleInput = new List<ControllerBinding>() { ControllerBinding.None }
 
InputActionReference LocomotionToggleAction
 

Properties

LocomotionType SelectedLocomotion [get]
 

Member Function Documentation

◆ ChangeLocomotion()

void BNG.LocomotionManager.ChangeLocomotion ( LocomotionType  locomotionType,
bool  save 
)

◆ ChangeLocomotionType()

void BNG.LocomotionManager.ChangeLocomotionType ( LocomotionType  loc)

◆ CheckControllerToggleInput()

virtual void BNG.LocomotionManager.CheckControllerToggleInput ( )
virtual

◆ LocomotionToggle()

void BNG.LocomotionManager.LocomotionToggle ( )

◆ OnLocomotionToggle()

void BNG.LocomotionManager.OnLocomotionToggle ( InputAction::CallbackContext  context)

◆ ToggleLocomotionType()

void BNG.LocomotionManager.ToggleLocomotionType ( )

◆ UpdateTeleportStatus()

void BNG.LocomotionManager.UpdateTeleportStatus ( )

Member Data Documentation

◆ DefaultLocomotion

LocomotionType BNG.LocomotionManager.DefaultLocomotion = LocomotionType.Teleport

Default locomotion to use if nothing stored in playerprefs. 0 = Teleport. 1 = SmoothLocomotion.

◆ LoadLocomotionFromPrefs

bool BNG.LocomotionManager.LoadLocomotionFromPrefs = false

If true, locomotion type will be saved and loaded from player prefs.

◆ LocomotionToggleAction

InputActionReference BNG.LocomotionManager.LocomotionToggleAction

◆ locomotionToggleInput

List<ControllerBinding> BNG.LocomotionManager.locomotionToggleInput = new List<ControllerBinding>() { ControllerBinding.None }

Property Documentation

◆ SelectedLocomotion

LocomotionType BNG.LocomotionManager.SelectedLocomotion
get

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