Files
VR-WuKong/Packages/PICO Unity Integration SDK-3.3.2-20251111/Runtime/Scripts/Hand/PXR_HandPoseGenerator.cs
2025-11-13 17:40:28 +08:00

49 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#if !PICO_OPENXR_SDK
/*******************************************************************************
Copyright © 2015-2022 PICO Technology Co., Ltd.All rights reserved.
NOTICEAll information contained herein is, and remains the property of
PICO Technology Co., Ltd. The intellectual and technical concepts
contained herein are proprietary to PICO Technology Co., Ltd. and may be
covered by patents, patents in process, and are protected by trade secret or
copyright law. Dissemination of this information or reproduction of this
material is strictly forbidden unless prior written permission is obtained from
PICO Technology Co., Ltd.
*******************************************************************************/
using System.Collections.Generic;
using UnityEngine;
namespace Unity.XR.PXR
{
public class PXR_HandPoseGenerator : MonoBehaviour
{
public PXR_HandPoseConfig config;
public PXR_HandPosePreview preview;
//Shapes
public ShapesRecognizer.Finger thumb = new ShapesRecognizer.Finger(HandFinger.Thumb);
public ShapesRecognizer.Finger index = new ShapesRecognizer.Finger(HandFinger.Index);
public ShapesRecognizer.Finger middle = new ShapesRecognizer.Finger(HandFinger.Middle);
public ShapesRecognizer.Finger ring = new ShapesRecognizer.Finger(HandFinger.Ring);
public ShapesRecognizer.Finger pinky = new ShapesRecognizer.Finger(HandFinger.Pinky);
public float shapesholdDuration = 0.09f;
//Bones
public List<BonesRecognizer.BonesGroup> Bones = new List<BonesRecognizer.BonesGroup>();
public float bonesHoldDuration = 0.022f;
//Trans
public TransRecognizer.TrackAxis trackAxis;
public TransRecognizer.SpaceType spaceType;
public TransRecognizer.TrackTarget trackTarget;
public float angleThreshold = 35f;
public float thresholdWidth = 10f;
public float transHoldDuration = 0.022f;
}
}
#endif