VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Runtime/Inputs/Simulation/Hands/XRSimulatedHandState.cs
2025-07-29 13:45:50 +03:00

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;
}
}
}