Skip to content
Snippets Groups Projects
Fact.cs 694 B
Newer Older
  • Learn to ignore specific revisions
  • using UnityEngine;
    
    
    public abstract class Fact : ScriptableObject
    
    {
        public int Id;
        public GameObject Representation;
    
    }
    
    //I am not sure if we ever need to attach these to an object, so one script for all for now...
    
    public class PointFact : Fact
    {
        public Vector3 Point;
    
        public Vector3 Normal;
    }
    public class LineFact : Fact
    {
    
    John Schihada's avatar
    John Schihada committed
        //Id's of the 2 Point-Facts that are connected
    
    John Schihada's avatar
    John Schihada committed
        //Id's of the 3 Point-Facts, where Pid2 is the point, where the angle is
    
        public int Pid1, Pid2, Pid3;
    }
    public class OnLineFact : Fact
    {
    
    John Schihada's avatar
    John Schihada committed
        //Id's of the 3 Point-Facs that are on one line