mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
Backported from godot4: Change 2D navigation ProjectSettings from integers to floats
Changes 2D navigation ProjectSettings from integers to floats.
- smix8
2852fb43f7
This commit is contained in:
parent
cb45a4b951
commit
697d4a32fc
@ -1514,7 +1514,7 @@
|
||||
<member name="navigation/2d/default_edge_connection_margin" type="float" setter="" getter="" default="1.0">
|
||||
Default edge connection margin for 2D navigation maps. See [method Navigation2DServer.map_set_edge_connection_margin].
|
||||
</member>
|
||||
<member name="navigation/2d/default_link_connection_radius" type="int" setter="" getter="" default="4">
|
||||
<member name="navigation/2d/default_link_connection_radius" type="float" setter="" getter="" default="4.0">
|
||||
Default link connection radius for 2D navigation maps. See [method NavigationServer2D.map_set_link_connection_radius].
|
||||
</member>
|
||||
<member name="navigation/2d/navigation_engine" type="String" setter="" getter="" default=""DEFAULT"">
|
||||
|
@ -384,7 +384,7 @@ World2D::World2D() {
|
||||
Navigation2DServer::get_singleton()->map_set_cell_size(navigation_map, GLOBAL_DEF("navigation/2d/default_cell_size", 1.0));
|
||||
Navigation2DServer::get_singleton()->map_set_cell_height(navigation_map, GLOBAL_DEF("navigation/2d/default_cell_height", 1.0));
|
||||
Navigation2DServer::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/2d/default_edge_connection_margin", 1.0));
|
||||
Navigation2DServer::get_singleton()->map_set_link_connection_radius(navigation_map, GLOBAL_DEF("navigation/2d/default_link_connection_radius", 4));
|
||||
Navigation2DServer::get_singleton()->map_set_link_connection_radius(navigation_map, GLOBAL_DEF("navigation/2d/default_link_connection_radius", 4.0));
|
||||
Navigation2DServer::get_singleton()->map_set_use_edge_connections(navigation_map, GLOBAL_DEF("navigation/2d/use_edge_connections", true));
|
||||
|
||||
indexer = memnew(SpatialIndexer2D);
|
||||
|
Loading…
Reference in New Issue
Block a user