blob: 456cfaacf6ef29d1efc9811a8b0bbb79c96f7e1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|