extends TileMapLayer func is_wall(collision_point: Vector2): var map_coordinates := local_to_map(collision_point) var tile = get_cell_tile_data(map_coordinates) return tile.get_collision_polygons_count(0) > 0 func is_ledge(collision_point: Vector2): var map_coordinates := local_to_map(collision_point) var tile = get_cell_tile_data(map_coordinates) return tile.get_collision_polygons_count(1) > 0