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()); }
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; }