Class PoseControl
Input System control that wraps up a Pose structure. All individual pose elements can be referenced separately. See Input
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Input
Assembly: Unity.XR.OpenXR.dll
Syntax
public class PoseControl : InputControl<Pose>
Constructors
PoseControl()
Default Constructor required by the Input System for instantiation.
Declaration
public PoseControl()
Properties
angularVelocity
Separate access to the angular
Declaration
[Preserve]
[InputControl(offset = 48, noisy = true)]
public Vector3Control angularVelocity { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
isTracked
Separate access to the is
Declaration
[Preserve]
[InputControl(offset = 0)]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
position
Separate access to the position value.
Declaration
[Preserve]
[InputControl(offset = 8, noisy = true)]
public Vector3Control position { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
rotation
Separate access to the rotation value.
Declaration
[Preserve]
[InputControl(offset = 20, noisy = true)]
public QuaternionControl rotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
trackingState
Separate access to the tracking
Declaration
[Preserve]
[InputControl(offset = 4)]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
Integer |
velocity
Separate access to the velocity value.
Declaration
[Preserve]
[InputControl(offset = 36, noisy = true)]
public Vector3Control velocity { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
ReadUnprocessedValueFromState(void*)
Read unprocessed state values from the input control state.
Declaration
public override Pose ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr | State data to read from. |
Returns
Type | Description |
---|---|
Pose | The pose data from the unprocessed state. |
Overrides
WriteValueIntoState(Pose, void*)
Write value data into input control state.
Declaration
public override void WriteValueIntoState(Pose value, void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
Pose | value | The value to write into the control state. |
void* | statePtr | A pointer to the control state data. |