PlaneTrackable.cs 394 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. public class PlaneTrackable : Trackable
  3. {
  4. private Vector3[] vertices;
  5. public PlaneTrackable(int id, Vector3[] vertices) : base(id)
  6. {
  7. this.vertices = vertices;
  8. }
  9. public Vector3[] GetPolygonVertices()
  10. {
  11. return vertices;
  12. }
  13. public void UpdateVertices(Vector3[] newVertices)
  14. {
  15. this.vertices = newVertices;
  16. }
  17. }