MotionCapture/Assets/Models/PosTransformator.cs
2023-02-19 20:10:57 +08:00

26 lines
741 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace Models
{
public class PosTransformator
{
public string mediaPipeName;
//动捕手机端关节点标识
public HumanBodyBones unityName;
//unity内部avatar系统关节点标识
public Vector3 mediaPipePos = new Vector3(0,0,0);
//动捕手机端位置数据
public List<PosTransformator> parent = new List<PosTransformator>();
//该骨骼节点的父关节点列表(因为传上来的数据没有脖子和骨盆节点)
public Quaternion prevQ;
//该骨骼节点的初始角度
public Quaternion currentQ;
//该骨骼节点的当前角度
}
}