Skip to content

Commit

Permalink
Fix type of safe_velocity parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMser committed Oct 27, 2022
1 parent aa989cb commit b9c3a55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/classes/NavigationAgent2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</description>
</signal>
<signal name="velocity_computed">
<param index="0" name="safe_velocity" type="Vector3" />
<param index="0" name="safe_velocity" type="Vector2" />
<description>
Notifies when the collision avoidance velocity is calculated. Emitted by [method set_velocity]. Only emitted when [member avoidance_enabled] is true.
</description>
Expand Down
2 changes: 1 addition & 1 deletion scene/2d/navigation_agent_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void NavigationAgent2D::_bind_methods() {
ADD_SIGNAL(MethodInfo("path_changed"));
ADD_SIGNAL(MethodInfo("target_reached"));
ADD_SIGNAL(MethodInfo("navigation_finished"));
ADD_SIGNAL(MethodInfo("velocity_computed", PropertyInfo(Variant::VECTOR3, "safe_velocity")));
ADD_SIGNAL(MethodInfo("velocity_computed", PropertyInfo(Variant::VECTOR2, "safe_velocity")));
}

void NavigationAgent2D::_notification(int p_what) {
Expand Down

0 comments on commit b9c3a55

Please sign in to comment.