Revision Difference
Structures/PathSegment#517011
<cat>struct</cat>
<structure>
<description>Structure represents a path segment, returned by <page>PathFollower:GetCurrentGoal</page>, <page>PathFollower:FirstSegment</page> and <page>PathFollower:LastSegment</page>.</description>
<fields>{{StructureField|CNavArea|area|The navmesh area this segment occupies.</fields>
</structure>
{{StructureField|number|curvature|How much of a curve should the bot execute when navigating this segment. 0 = none, 1 = 180°}}{{StructureField|number|distanceFromStart|Distance of this segment from the start of the path.}}{{StructureField|Vector|forward|The direction of travel to reach the end of this segment from the start, represented as a normalised vector.}}{{StructureField|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.}}{{StructureField|CNavLadder|ladder|The navmesh ladder this segment occupies, if any.}}{{StructureField|number|length|Length of this segment.}}{{StructureField|Vector|m_portalCenter}}{{StructureField|number|m_portalHalfWidth}}{{StructureField|Vector|pos|The position of the end of this segment.}}{{StructureField|number|type|The movement type of this segment, indicating how bots are expected to move along this segment.<br/>⤶
{{StructureField|number|curvature|How much of a curve should the bot execute when navigating this segment. 0 = none, 1 = 180°}}{{StructureField|number|distanceFromStart|Distance of this segment from the start of the path.}}{{StructureField|Vector|forward|The direction of travel to reach the end of this segment from the start, represented as a normalised vector.}}{{StructureField|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.}}{{StructureField|CNavLadder|ladder|The navmesh ladder this segment occupies, if any.}}{{StructureField|number|length|Length of this segment.}}<item name="m_portalCenter" type="Vector"></item>⤶
<item name="m_portalHalfWidth" type="number"></item>⤶
{{StructureField|Vector|pos|The position of the end of this segment.}}{{StructureField|number|type|The movement type of this segment, indicating how bots are expected to move along this segment.<br/>⤶
* 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)
}}
}}