Fixes navigation path reset
This commit is contained in:
parent
750d7ea359
commit
c7cf624836
2 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,7 @@ void NavigationAgent2D::set_target_location(Vector2 p_location) {
|
||||||
navigation_path.clear();
|
navigation_path.clear();
|
||||||
target_reached = false;
|
target_reached = false;
|
||||||
navigation_finished = false;
|
navigation_finished = false;
|
||||||
|
update_frame_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector2 NavigationAgent2D::get_target_location() const {
|
Vector2 NavigationAgent2D::get_target_location() const {
|
||||||
|
|
|
@ -234,6 +234,7 @@ void NavigationAgent::set_target_location(Vector3 p_location) {
|
||||||
navigation_path.clear();
|
navigation_path.clear();
|
||||||
target_reached = false;
|
target_reached = false;
|
||||||
navigation_finished = false;
|
navigation_finished = false;
|
||||||
|
update_frame_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector3 NavigationAgent::get_target_location() const {
|
Vector3 NavigationAgent::get_target_location() const {
|
||||||
|
|
Loading…
Reference in a new issue