API reference
API reference
Select your platform
No SDKs available
No versions available

LocomotionGate Class

Extends MonoBehaviour
This Gate reads the IHand orientation towards the shoulder and decides if it should be in Teleport mode or Turning mode.
It enables/disables said modes based on some InputIActiveStates (EnableShape and DisableShape). It outputs it result into two IActiveStates (for Teleport and Turn)

Member Enumerations

Enumeration LocomotionMode

Set of locomotion modes supported by this component - see ActiveMode.
None
No description available
Teleport
No description available
Turn
No description available

Properties

The IHand that provides orientation data to this component.
IActiveState EnableShape[Get]
IActiveState DisableShape[Get]
The current active LocomotionMode determined by the shape and orientation of the assigned IHand.
The current hand angle computed by this component, using the orientation of the Hand.
The wrist direction of the Hand.
A pose used for hand stabilization, derived from the shoulder-to-hand orientation.
This event is raised whenever the active locomotion mode is changed (see ActiveMode).

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Disables the Gate, forcing the user to perform the enable shape
Disables the Gate, forcing the user to perform the disable shape and then the enable shape
Injects all required dependencies for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying IHand for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying shoulder transform for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying IActiveState enable shape for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying IActiveState disable shape for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying VirtualActiveState for a dynamically instantiated LocomotionGate representing the turning state.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying VirtualActiveState for a dynamically instantiated LocomotionGate representing the teleport state.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying GateSection set for a dynamically instantiated LocomotionGate.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon