Add NavigationLink helper functions for global positions
Adds helper functions to set the links start and end position with global positions or get them as global positions. Adds global start and end position for the navigation link to the 'link_reached' signal of NavigationAgent. That signal gets emitted when a navigation link waypoint is reached. Requires that 'owner' meta data is enabled on the NavigationAgent.
This commit is contained in:
parent
b7723a01d9
commit
d87f124768
10 changed files with 176 additions and 0 deletions
|
|
@ -171,6 +171,8 @@
|
|||
- [code]type[/code]: Always [constant NavigationPathQueryResult2D.PATH_SEGMENT_TYPE_LINK].
|
||||
- [code]rid[/code]: The [RID] of the link.
|
||||
- [code]owner[/code]: The object which manages the link (usually [NavigationLink2D]).
|
||||
- [code]link_entry_position[/code]: If [code]owner[/code] is available and the owner is a [NavigationLink2D], it will contain the global position of the link's point the agent is entering.
|
||||
- [code]link_exit_position[/code]: If [code]owner[/code] is available and the owner is a [NavigationLink2D], it will contain the global position of the link's point which the agent is exiting.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="navigation_finished">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue