Beispiel #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());
 }
Beispiel #2
0
 public MeshNode(Vector3 pos, Face f)
 {
     position = pos;
     face = f;
     neighbours = new List<MeshNode>();
 }
 public HitScan(Vector3 cp, Ray r, Face b)
     : this(cp, r)
 {
     collisionFace = b;
 }