VR Interaction Framework v2.0
Loading...
Searching...
No Matches
BNG.XRTrackedPoseDriver Class Reference

A simple alternative to the TrackedPoseDriver component. Feel free to swap this out with a TrackedPoseDriver from the XR Legacy Input Helpers package or using the new Unity Input System. More...

Inheritance diagram for BNG.XRTrackedPoseDriver:

Public Member Functions

virtual void RefreshDeviceStatus ()
 
virtual void UpdateDevice ()
 
Vector3 GetHMDLocalPosition ()
 
InputDevice GetHMD ()
 
Quaternion GetHMDLocalRotation ()
 
Vector3 GetControllerLocalPosition (ControllerHandedness handSide)
 
Quaternion GetControllerLocalRotation (ControllerHandedness handSide)
 
InputDevice GetLeftController ()
 
InputDevice GetRightController ()
 

Public Attributes

TrackableXRDevice Device = TrackableXRDevice.HMD
 

Protected Member Functions

virtual void Awake ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void Update ()
 
virtual void FixedUpdate ()
 
virtual void OnBeforeRender ()
 

Protected Attributes

InputDevice deviceToTrack
 
Vector3 initialLocalPosition
 
Quaternion initialLocalRotation
 
Vector3 currentLocalPosition
 
Quaternion currentLocalRotation
 

Detailed Description

A simple alternative to the TrackedPoseDriver component. Feel free to swap this out with a TrackedPoseDriver from the XR Legacy Input Helpers package or using the new Unity Input System.

Member Function Documentation

◆ Awake()

virtual void BNG.XRTrackedPoseDriver.Awake ( )
protectedvirtual

◆ FixedUpdate()

virtual void BNG.XRTrackedPoseDriver.FixedUpdate ( )
protectedvirtual

◆ GetControllerLocalPosition()

Vector3 BNG.XRTrackedPoseDriver.GetControllerLocalPosition ( ControllerHandedness  handSide)

◆ GetControllerLocalRotation()

Quaternion BNG.XRTrackedPoseDriver.GetControllerLocalRotation ( ControllerHandedness  handSide)

◆ GetHMD()

InputDevice BNG.XRTrackedPoseDriver.GetHMD ( )

◆ GetHMDLocalPosition()

Vector3 BNG.XRTrackedPoseDriver.GetHMDLocalPosition ( )

◆ GetHMDLocalRotation()

Quaternion BNG.XRTrackedPoseDriver.GetHMDLocalRotation ( )

◆ GetLeftController()

InputDevice BNG.XRTrackedPoseDriver.GetLeftController ( )

◆ GetRightController()

InputDevice BNG.XRTrackedPoseDriver.GetRightController ( )

◆ OnBeforeRender()

virtual void BNG.XRTrackedPoseDriver.OnBeforeRender ( )
protectedvirtual

◆ OnDisable()

virtual void BNG.XRTrackedPoseDriver.OnDisable ( )
protectedvirtual

◆ OnEnable()

virtual void BNG.XRTrackedPoseDriver.OnEnable ( )
protectedvirtual

◆ RefreshDeviceStatus()

virtual void BNG.XRTrackedPoseDriver.RefreshDeviceStatus ( )
virtual

◆ Update()

virtual void BNG.XRTrackedPoseDriver.Update ( )
protectedvirtual

◆ UpdateDevice()

virtual void BNG.XRTrackedPoseDriver.UpdateDevice ( )
virtual

Member Data Documentation

◆ currentLocalPosition

Vector3 BNG.XRTrackedPoseDriver.currentLocalPosition
protected

◆ currentLocalRotation

Quaternion BNG.XRTrackedPoseDriver.currentLocalRotation
protected

◆ Device

TrackableXRDevice BNG.XRTrackedPoseDriver.Device = TrackableXRDevice.HMD

◆ deviceToTrack

InputDevice BNG.XRTrackedPoseDriver.deviceToTrack
protected

◆ initialLocalPosition

Vector3 BNG.XRTrackedPoseDriver.initialLocalPosition
protected

◆ initialLocalRotation

Quaternion BNG.XRTrackedPoseDriver.initialLocalRotation
protected

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