Esempio n. 1
0
 public static bool pointOnFace(Vector3 p, Face f)
 {
     List<Vector3> verts = new List<Vector3>();
     foreach (Vertex v in f.vertices)
         verts.Add(v.position);
     return pointOnFace(p, verts, f.plane.getNormal());
 }
Esempio n. 2
0
 public MeshNode(Vector3 pos, Face f)
 {
     position = pos;
     face = f;
     neighbours = new List<MeshNode>();
 }
Esempio n. 3
0
 public HitScan(Vector3 cp, Ray r, Face b)
     : this(cp, r)
 {
     collisionFace = b;
 }