24 lines
729 B
C#
24 lines
729 B
C#
namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation.Hands
|
|
{
|
|
struct XRSimulatedHandState
|
|
{
|
|
public Vector3 position { get; set; }
|
|
public Quaternion rotation { get; set; }
|
|
public Vector3 euler { get; set; }
|
|
public bool isTracked { get; set; }
|
|
public HandExpressionName expressionName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Resets the value of all fields to default or the identity rotation.
|
|
/// </summary>
|
|
public void Reset()
|
|
{
|
|
position = default;
|
|
rotation = Quaternion.identity;
|
|
euler = default;
|
|
isTracked = false;
|
|
expressionName = HandExpressionName.Default;
|
|
}
|
|
}
|
|
}
|