public bool IsCollision(H_Map.TileMap tiles, Rectangle location) { Microsoft.Xna.Framework.Point tileIndex = tiles.GetTileIndexFromVector(new Vector2(location.X, location.Y)); return (!tiles.interactiveLayer[tileIndex.X, tileIndex.Y].isPassable); }