using UnityEngine;
namespace Rokid.UXR.Interaction
{
[System.Serializable]
public class GestureBean
{
///
/// Gesture type
///
public int gesture_type;
///
/// Hand type
///
public int hand_type;
///
/// Hand Orientation
///
public int hand_orientation;
///
/// Skeleton Pos
///
public Vector3[] skeletons;
///
/// Skeleton Rot
///
public Quaternion[] skeletonsRot;
///
/// Hand Root Axis
///
public Vector3[] axis;
///
/// Hand Root Rotation
///
public Quaternion rotation;
///
/// Hand root positoin
///
public Vector3 position;
public string ThreeGesKeyInfo()
{
return $"\n handPose:{position},{rotation.eulerAngles}\n wristPose:{skeletons?[0]},{skeletonsRot?[0].eulerAngles} \n handType: {(HandType)hand_type} \n gestureType: {(GestureType)gesture_type} \n handOrientation:{hand_orientation} \n skeletons.Count:{skeletons?.Length}";
}
}
}