Public Member Functions |
| virtual void | firstTick () |
| virtual void | tick () |
| virtual | ~DtActiveBotNavInterface () |
| virtual bool | ableToNavigate () const |
| | Indicates whether or not this navInterface is currently able to provide navigation services for the entity.
|
| virtual DtNavArea * | navArea () |
| virtual bool | requestControl (int priority, const DtString &controller) |
| virtual bool | hasControl (int priority) |
| virtual void | releaseControl (int priority) |
| virtual void | setDestination (const DtVector &localDest) |
| | Sets the destination into the navBot if it is there.
|
| virtual void | setDesiredSpeed (double speed) |
| virtual DtNavBot::PathStatus | pathStatus (double atDistance) |
| virtual DtString | pathStatusString () |
| virtual double | getOutputSpeed () |
| virtual double | getOutputHeading () |
| virtual bool | currentPath (std::vector< DtVector > &path) |
| virtual bool | abstractPath (std::vector< DtVector > &path) |
| virtual bool | currentPathEdge (DtVector &edgeStart, DtVector &edgeEnd) |
| virtual unsigned | currentAbstractPathIndex () |
| virtual void | setPathCostEvalFunction (DtNavBot::DtNavBotPathLocationEvalFcn fcn, void *usr) |
| | Sets a function that will be called frequently during path finding and path following to evaluate the cost of crossing various section of the navigation data.
|
| virtual DtVector | transitionPoint () const |
| virtual bool | usingTransitionPoint () const |
| virtual bool | findingTransitionPoint () const |
| | Returns true if in the process of looking for a transition point.
|
| virtual std::vector< DtVector > | searchInArea (double radius, double postSpacing, DtNavArea::DtPointOfInterestEvaluatorFcn=0, void *usrData=0, int navTag=-1) |
| | Returns a list of points that have been judged to be usable within the given area and post spacing.
|
| virtual std::vector< DtVector > | searchInArea (const DtVector &startPoint, double radius, double postSpacing, DtNavArea::DtPointOfInterestEvaluatorFcn=0, void *usrData=0, int navTag=-1) |
| virtual DtNavAreaQuery::Ptr | findBestPathTo (const std::vector< DtVector > &localPositions, DtNavArea::DtSearchAreaPointCostModifierEvaluatorFcn=0, DtNavArea::DtPointOfInterestEvaluatorFcn=0, DtNavArea::DtPathCalculatedEvaluatorFcn=0, void *usrData=0) |
| | Starts the process of finding the best path to any of the given destination points.
|
| virtual bool | findFarthestPositionAlongHeading (const DtVector &start, double heading, double maxDistance, DtVector &result, bool &reachedMaxDist) |
| | Finds the farthest point along a given vector that can be traveled without hitting the border of the NavMesh or a non-traversable triangle.
|
| virtual void | cancelQuery (DtNavAreaQuery::Ptr) |
| | Cancels the given query.
|
| virtual void | moveAlongPath (const std::vector< DtVector > &) |
| | Sets the bot to move along the given path. Points are in local coordinates.
|
| virtual bool | findFarthestPositionAlongHeading (double heading, double maxDistance, DtVector &result, bool &reachedMaxDist) |
| | Finds the farthest point along a given vector that we can travel without hitting the border of the NavMesh or a non-traversable triangle.
|
| virtual DtNavTag | navTagAtPosition (const DtVector &localPos) const |
| | Gets the nav tag of the position, if valid.
|
| virtual DtNavTag | upcomingNavTagOnPath () const |
| | Gets the upcoming nav tag on the path.
|
| virtual void | upcomingNavTagsOnPath (double distance, DtNavTagAndLocationList &navTags) const |
| | Gets all nav tags within the specified distance from the current location on the path.
|
| virtual void | setNavigationMethod (DtNavBot::NavigationMethod navMethod) |
| | Updates the navigation method.
|
| virtual void | resetNavigationMethod () |
| | Resets the navigation method to the default setting.
|
| virtual DtNavBot::NavigationMethod | navigationMethod () const |
| | Gets the current navigation method.
|
| bool | findValidPositionNearby (const DtVector &localStart, double radius, DtVector &result) |
| | Finds a valid point near the specific position.
|
| virtual void | postObjectInit () |
| | Perform additional initialization after the object has been initialized.
|
| virtual | ~DtVrfObjectNavInterface ()=0 |
| virtual void | addNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) |
| virtual void | removeNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) |
| virtual void | invokeNavAreaChangedCallbacks () |
Protected Member Functions |
| | DtActiveBotNavInterface (DtVrfObject *vrfObject) |
| | Use the create() method instead of calling the constructor.
|
| virtual bool | init () |
| | Virtual init, called from the create() method.
|
| virtual DtNavBot * | navBot () |
| virtual void | changingNavArea (DtNavArea *newNavArea) |
| | Called when the objects position is in a navArea that it was not on the previous check.
|
| virtual void | processSetLocationComplete (DtVrfObject *vrfObject) |
| virtual DtNavAreaQuery::Ptr | findTransitionPoint (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest) |
| virtual DtNavAreaQuery::Ptr | findBestExitPoint (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest) |
| virtual DtNavAreaQuery::Ptr | findCoverPoint (DtNavArea *navArea, const DtVector &localStart, const DtVector &localCoverFrom, double coverFromRadius, double distanceFromThreat) |
| virtual bool | findInsidePositionFromOutsidePosition (DtNavArea *navArea, const DtVector &localStart, const DtVector &localDest, DtVector &result, int &halfEdgeType) |
| virtual DtVector | adjustDestination (const DtVector &localDest) |
| | Moves the destination to on the nav mesh if possible.
|
| virtual DtVector | localOrParentPos (const DtVector &localPos) |
| | If the entity is embarked, converts the provided local position to the parent frame, otherwise returns the same local position provided.
|
| virtual DtVector | objectLocationLocalOrParent () |
| | Returns the local position of the entity, or the parent position if the entity is embarked.
|
| virtual bool | botShouldBeActive () |
| | Checks any special conditions (other than location) for the activation/deactivation of the bot, such as the entity being destroyed.
|
| virtual void | setCollisionAvoidParams (DtNavBot::CollisionAvoidanceConfiguration &collAvoidConfig) |
| | Sets the collision avoidance configuration from the parameters specified in the platform OPE file.
|
| virtual void | findTransitionPointStartingFrom (const DtVector &startingPoint, const DtVector &to) |
| | Finds a new transition point at the given start point.
|
| virtual void | removeDebugTransitionPoints () |
| virtual void | setNavigationConfigParams (DtNavBot::NavigationConfiguration &navConfig) |
| | Sets the navigation configuration from the parameters specified in the platform OPE file.
|
| | DtVrfObjectNavInterface (DtVrfObject *vrfObject) |
| | Use the create() method instead of calling the constructor.
|
| virtual bool | isCollidableWhenDestroyed () const |
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation system.
They will have a DtNavBot instantiated if they are within a navigation area.