Ejemplo n.º 1
0
        public bool IsFacing(WoWUnit o)
        {
            var left = Location.FlattenZf() + Vector2.UnitY.RotateAround(Vector2.Origo, (float)(Facing));
            var ray  = new Ray2(Location.FlattenZf(), left);

            return(ray.IsOnRightSide(o.Location.FlattenZf()));
        }