JointsData.cs 548 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [System.Serializable]
  5. public class JointsData
  6. {
  7. public List<float> jointsPositionsX = new List<float>();
  8. public List<float> jointsPositionsY = new List<float>();
  9. public List<float> jointsPositionsZ = new List<float>();
  10. public JointsData(Vector3[] jointsData)
  11. {
  12. foreach(Vector3 t in jointsData)
  13. {
  14. jointsPositionsX.Add(t.x);
  15. jointsPositionsY.Add(t.y);
  16. jointsPositionsZ.Add(t.z);
  17. }
  18. }
  19. }