TeleportOrientationHandlerThumbstick Class Reference
This orientation handler will use the specified thumbstick to adjust the landing orientation of the teleport. More...
Inheritance diagram for TeleportOrientationHandlerThumbstick:
Public Attributes | |
| OrientationModes | OrientationMode |
| HeadRelative=Character will orient to match the arrow. ForwardFacing=When user orients to match the arrow, they will be facing the sensors. More... | |
| OVRInput.Controller | Thumbstick |
| Which thumbstick is to be used for adjusting the teleport orientation. More... | |
| float | RotateStickThreshold = 0.8f |
| The orientation will only change if the thumbstick magnitude is above this value. This will usually be larger than the TeleportInputHandlerTouch.ThumbstickTeleportThreshold. More... | |
Protected Member Functions | |
| override void | InitializeTeleportDestination () |
| override void | UpdateTeleportDestination () |
Protected Member Functions inherited from TeleportOrientationHandler | |
| TeleportOrientationHandler () | |
| override void | AddEventHandlers () |
| Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are added as intended. More... | |
| override void | RemoveEventHandlers () |
| Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are removed as intended. More... | |
| Quaternion | GetLandingOrientation (OrientationModes mode, Quaternion rotation) |
Protected Member Functions inherited from TeleportSupport | |
| virtual void | OnEnable () |
| OnEnable is virtual so that derived classes can set up references to objects before AddEventHandlers is called, as is required by TeleportSupport derivations. More... | |
| virtual void | OnDisable () |
Additional Inherited Members | |
Public Types inherited from TeleportOrientationHandler | |
| enum | OrientationModes { OrientationModes.HeadRelative, OrientationModes.ForwardFacing } |
| The OrientationModes are used to specify how the character should be oriented when they land after a teleport. More... | |
Protected Attributes inherited from TeleportOrientationHandler | |
| LocomotionTeleport.AimData | AimData |
Properties inherited from TeleportSupport | |
| LocomotionTeleport | LocomotionTeleport [get] |
Detailed Description
This orientation handler will use the specified thumbstick to adjust the landing orientation of the teleport.
Member Function Documentation
◆ InitializeTeleportDestination()
|
protectedvirtual |
Implements TeleportOrientationHandler.
◆ UpdateTeleportDestination()
|
protectedvirtual |
Implements TeleportOrientationHandler.
Member Data Documentation
◆ OrientationMode
| OrientationModes TeleportOrientationHandlerThumbstick.OrientationMode |
HeadRelative=Character will orient to match the arrow. ForwardFacing=When user orients to match the arrow, they will be facing the sensors.
◆ RotateStickThreshold
| float TeleportOrientationHandlerThumbstick.RotateStickThreshold = 0.8f |
The orientation will only change if the thumbstick magnitude is above this value. This will usually be larger than the TeleportInputHandlerTouch.ThumbstickTeleportThreshold.
◆ Thumbstick
| OVRInput.Controller TeleportOrientationHandlerThumbstick.Thumbstick |
Which thumbstick is to be used for adjusting the teleport orientation.
The documentation for this class was generated from the following file:
- Oculus/SampleFramework/Core/Locomotion/Scripts/TeleportOrientationHandlerThumbstick.cs
Protected Member Functions inherited from
1.8.13