You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Rename Navigation's neighbor_dist to neightbor_distance
NavigationAgent2D/3D.`neighbor_dist` -> `neighbor_distance` (also affects setters and getters) NavigationServer2D/3D.`agent_set_neighbor_dist()` -> `agent_set_neighbor_distance()` Also changes their parameters' names. Doesn't affect "Agent.neighborDist_" in Agent.h
This commit is contained in:
@@ -135,7 +135,7 @@ TypedArray<String> NavigationObstacle2D::get_configuration_warnings() const {
|
||||
}
|
||||
|
||||
void NavigationObstacle2D::initialize_agent() {
|
||||
NavigationServer2D::get_singleton()->agent_set_neighbor_dist(agent, 0.0);
|
||||
NavigationServer2D::get_singleton()->agent_set_neighbor_distance(agent, 0.0);
|
||||
NavigationServer2D::get_singleton()->agent_set_max_neighbors(agent, 0);
|
||||
NavigationServer2D::get_singleton()->agent_set_time_horizon(agent, 0.0);
|
||||
NavigationServer2D::get_singleton()->agent_set_max_speed(agent, 0.0);
|
||||
|
||||
Reference in New Issue
Block a user