MotionCapture/Assets/Utils/PoseTransformHandlers/NormalHandler.cs
2023-03-01 22:07:39 +08:00

20 lines
430 B
C#

using Models;
using UnityEngine;
namespace Utils.PoseTransformHandlers
{
public class NormalHandler : IPoseTransformHandler
{
private Vector3 _result;
public void ReceivePoseLandmark(PoseLandmark landmark)
{
_result = new Vector3(landmark.X, landmark.Y, landmark.Z);
}
public Vector3 GetResultPosition()
{
return _result;
}
}
}