PathSegment
Description
Structure represents a path segment, returned by PathFollower:GetCurrentGoal, PathFollower:FirstSegment and PathFollower:LastSegment.
Parameters
CNavArea area
The navmesh area this segment occupies.
number curvature
How much of a curve should the bot execute when navigating this segment. 0 = none, 1 = 180°
number distanceFromStart
Distance of this segment from the start of the path.
Vector forward
The direction of travel to reach the end of this segment from the start, represented as a normalised vector.
number how
The direction of travel to reach the end of this segment from the start, represented as a cardinal direction integer 0 to 3, or 9 for vertical movement.
CNavLadder ladder
The navmesh ladder this segment occupies, if any.
number length
Length of this segment.
Vector m_portalCenter
number m_portalHalfWidth
Vector pos
The position of the end of this segment.
number type
The movement type of this segment, indicating how bots are expected to move along this segment.
- 0 is ground movement
- 1 is falling down
- 2 is climbing up or jumping
- 3 is jumping over a gap
- 4 is climbing a ladder up (unused)
- 5 is climbing a ladder down (unused)