AI NavGoal t

From Valve Developer Community
Revision as of 15:08, 11 April 2008 by TomEdwards (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The AI_NavGoal_t structure is used to encapsulate a navigation request. It has five constructors, which accept varying destination parameters:

  1. Unspecified goal/location
  2. Vector destination
  3. Vector destination and GoalType_t
  4. AI_PathNode_t destination
  5. AI_PathNode_t destination and GoalType_t

Parameters

Alongside the parameters in the list above:

Activity activity
The activity to use when moving.
Activity arrivalActivity
int arrivalSequence
The activity or sequence to play on arriving at the goal.
float tolerance
When the NPC reaches this distance from the goal, it will stop. Useful for targets within entities - e.g. a collidable model's origin.
AI_NavGoalFlags_t flags
Movement flags - click link for detail.
CBaseEntity* pTarget
"The target of the navigation, primarily used to ignore the entity in hull and line traces".
float maxInitialSimplificationDist
How far to simplify the path. Game default sets the minimum.
Todo: What is simplification?