TaiZhouCangChu_VRanime/Assets/HTC.UnityPlugin/Utility/HandJoint/JointPose.cs

24 lines
577 B
C#

//========= Copyright 2016-2023, HTC Corporation. All rights reserved. ===========
using System;
using UnityEngine;
namespace HTC.UnityPlugin.Utility
{
[Serializable]
public struct JointPose
{
public bool isValid;
public RigidPose pose;
public JointPose(Vector3 position, Quaternion rotation)
{
this.isValid = true;
this.pose = new RigidPose(position, rotation);
}
public JointPose(RigidPose pose)
{
this.isValid = true;
this.pose = pose;
}
}
}