Ejemplo n.º 1
0
        public bool withinBounds(iCollidable obj)
        {
            Vector2 objPosition = obj.Position();

            return(objPosition.X >= Bounds.X && objPosition.X <= Bounds.X + Bounds.Width &&
                   objPosition.Y >= Bounds.Y && objPosition.Y <= Bounds.Y + Bounds.Height);
        }