Methods
Last updated
Last updated
This (optional) method is used when the PathFollowingComponent
enters into this specific . It ensures that path-following resumes correctly after the agent exits the link. While even without calling this method, they may be unreliable in some cases. Calling ResumePathFollowing
guarantees that the Exit
events for this navigation link are accurately traced and handled.
Returns the left and right points of the navigation link in world space. These points define the two endpoints of the link as positioned in the game world.
If the direction is set to Direction::LeftToRight
, the start point will be the left point, and the end point will be the right point.
If the direction is set to Direction::RightToLeft
, the start point will be the right point, and the end point will be the left point.
For Direction::Both
, the method defaults to returning the left point as the start and the right point as the end.
This is particularly useful when the navigation link’s directionality matters for pathfinding or traversal logic.
Returns a map containing all PathFollowingComponents
that are currently using this navigation link.
Key: The PathFollowingComponent
representing the agent utilizing the link.
This method is useful for tracking active agents on the navigation link and their current traversal status.
Returns the owner of this navigation link. This allows you to access the parent component that manages the link. The function may return nullptr
, so it is crucial to validate the returned value before attempting to use it.
Returns a copy of the structure that was used to create this specific navigation link. This value reflects the latest settings from the and updates whenever changes are made to the .
Returns the origin point of the navigation link in world space. This value dynamically updates whenever the settings in the are modified, the component itself moves, or the shape of the spline changes.
This method works similarly to but adjusts the returned points based on the of the navigation link.
Value: An structure that provides details about the agent's movement state on the link.