-Change link to new documentation
-fixed bug in tilemap collision debug
This commit is contained in:
parent
c795ceca20
commit
70cdfa681a
3 changed files with 7 additions and 1 deletions
|
|
@ -450,6 +450,7 @@ void TileMap::_update_dirty_quadrants() {
|
|||
_fix_cell_transform(xform,c,shape_ofs+center_ofs,s);
|
||||
|
||||
if (debug_canvas_item) {
|
||||
vs->canvas_item_add_set_transform(debug_canvas_item,xform);
|
||||
shape->draw(debug_canvas_item,debug_collision_color);
|
||||
|
||||
}
|
||||
|
|
@ -459,6 +460,10 @@ void TileMap::_update_dirty_quadrants() {
|
|||
}
|
||||
}
|
||||
|
||||
if (debug_canvas_item) {
|
||||
vs->canvas_item_add_set_transform(debug_canvas_item,Matrix32());
|
||||
}
|
||||
|
||||
if (navigation) {
|
||||
Ref<NavigationPolygon> navpoly = tile_set->tile_get_navigation_polygon(c.id);
|
||||
if (navpoly.is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue