Struct SpatialState
This class represents the current state of the input system.
Namespace: Evergine.Framework.XR.Interaction
Assembly: Evergine.Framework.dll
Syntax
public struct SpatialState
Fields
Handedness
Gets the left or right controller.
Declaration
public XRHandedness Handedness
Field Value
Type | Description |
---|---|
XRHandedness |
IsDetected
Gets a value indicating whether the input source is detected.
Declaration
public bool IsDetected
Field Value
Type | Description |
---|---|
bool |
IsGraspPressed
Gets a value indicating whether the grasp button is pressed.
Declaration
public bool IsGraspPressed
Field Value
Type | Description |
---|---|
bool |
IsMenuPressed
Gets a value indicating whether the menu button is pressed.
Declaration
public bool IsMenuPressed
Field Value
Type | Description |
---|---|
bool |
IsSelectTriggerPressed
Gets a value indicating whether the menu button is pressed.
Declaration
public bool IsSelectTriggerPressed
Field Value
Type | Description |
---|---|
bool |
IsSelected
Gets a value indicating whether the user is making the air tap gesture.
Declaration
public bool IsSelected
Field Value
Type | Description |
---|---|
bool |
IsThumbstickPressed
Gets a value indicating whether the ThumbStick is pressed.
Declaration
public bool IsThumbstickPressed
Field Value
Type | Description |
---|---|
bool |
IsTouchpadPressed
Gets a value indicating whether the TouchPad is pressed.
Declaration
public bool IsTouchpadPressed
Field Value
Type | Description |
---|---|
bool |
IsTouchpadTouched
Gets a value indicating whether the TouchPad is touched or not.
Declaration
public bool IsTouchpadTouched
Field Value
Type | Description |
---|---|
bool |
Kind
Gets the type of an interaction source.
Declaration
public SpatialSource Kind
Field Value
Type | Description |
---|---|
SpatialSource |
Orientation
Gets the orientation of a hand or controller.
Declaration
public Quaternion Orientation
Field Value
Type | Description |
---|---|
Quaternion |
Position
Gets the position of a hand or controller.
Declaration
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
SelectTriggerValue
Gets the selected trigger value.
Declaration
public float SelectTriggerValue
Field Value
Type | Description |
---|---|
float |
SourceLossRisk
Gets the recognition confidence as a value from 0.0 to 1.0.
Declaration
public float SourceLossRisk
Field Value
Type | Description |
---|---|
float |
Thumbstick
Gets ThumbStick X and Y values.
Declaration
public Vector2 Thumbstick
Field Value
Type | Description |
---|---|
Vector2 |
TipControllerForward
Gets the tip of the forward controller.
Declaration
public Vector3 TipControllerForward
Field Value
Type | Description |
---|---|
Vector3 |
TipControllerPosition
Gets the tip of the controller's position.
Declaration
public Vector3 TipControllerPosition
Field Value
Type | Description |
---|---|
Vector3 |
Touchpad
Gets TouchPad X, Y values.
Declaration
public Vector2 Touchpad
Field Value
Type | Description |
---|---|
Vector2 |
Velocity
Gets the velocity of a hand or controller.
Declaration
public Vector3 Velocity
Field Value
Type | Description |
---|---|
Vector3 |