public static Face GetFace(Pos start, Pos end) { float dis = ThreeSpace.GetDis(start, end); Face face = new Face(); face.X = (end.X - start.X) / dis; face.Y = (end.Y - start.Y) / dis; face.Z = (end.Z - start.Z) / dis; return(face); }
public bool CheckDis(Entity entity) { float dis = ThreeSpace.GetDis(this.role.GetPos(), entity.GetPos()); return(true); }