- Edited
is here any proper way to add collision to TileMap at runtime or while tool-mode? i've tried to use following code to add collision to cells:
var shape = ConvexPolygonShape2D.new()
var shape_points: PoolVector2Array = [Vector2(0, 0), Vector2(16, 0), Vector2(16, 16), Vector2(0, 16)]
shape.set_points(shape_points)
tile_add_shape(id, shape, Transform2D(0, Vector2D())
but it overrides tilemap.tscn file like crazy. 320 lines becomes 8000.