mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-24 08:30:02 +00:00
-Re-added margins in one way collision (made in a more user friendly way than in Godot 2.1), fixes #23860
-Fixed potential bug in OWC (i dont think anyone had it but..)
This commit is contained in:
@@ -481,7 +481,7 @@ void TileMap::update_dirty_quadrants() {
|
||||
}
|
||||
ps->body_add_shape(q.body, shape->get_rid(), xform);
|
||||
ps->body_set_shape_metadata(q.body, shape_idx, Vector2(E->key().x, E->key().y));
|
||||
ps->body_set_shape_as_one_way_collision(q.body, shape_idx, shapes[i].one_way_collision);
|
||||
ps->body_set_shape_as_one_way_collision(q.body, shape_idx, shapes[i].one_way_collision, shapes[i].one_way_collision_margin);
|
||||
shape_idx++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user