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

LocomotionGate Class

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

Member Enumerations

Enumeration LocomotionMode

None
No description available
Teleport
No description available
Turn
No description available

Properties

IHand Hand[Get]
IActiveState EnableShape[Get]
IActiveState DisableShape[Get]
LocomotionMode ActiveMode[Get]
float CurrentAngle[Get]
Vector3 WristDirection[Get]
Pose StabilizationPose[Get]
Action< LocomotionModeEventArgs > WhenActiveModeChanged

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
void InjectAllLocomotionGate
( IHand hand,
Transform shoulder,
IActiveState enableShape,
IActiveState disableShape,
VirtualActiveState turningState,
VirtualActiveState teleportState,
GateSection [] gateSections )
void InjectHand
( IHand hand )
void InjectShoulder
( Transform shoulder )
void InjectEnableShape
( IActiveState enableShape )
void InjectDisableShape
( IActiveState disableShape )
void InjectTurningState
( VirtualActiveState turningState )
void InjectTeleportState
( VirtualActiveState teleportState )
void InjectGateSections
( GateSection [] gateSections )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon