Panda3D
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
aiPathFinder.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "meshNode.h"
#include "cmath.h"
#include "lineSegs.h"

Go to the source code of this file.

Classes

class  PathFinder
 This class implements pathfinding using A* algorithm. More...
 

Typedefs

typedef std::vector< NodeArray > NavMesh
 
typedef std::vector< Node * > NodeArray
 

Functions

Nodefind_in_mesh (NavMesh nav_mesh, LVecBase3 pos, int grid_size)
 This function allows the user to pass a position and it returns the corresponding node on the navigation mesh.
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
Deepak, John, Navin
Date
2009-11-10

Definition in file aiPathFinder.h.

Typedef Documentation

◆ NavMesh

typedef std::vector<NodeArray> NavMesh

Definition at line 22 of file aiPathFinder.h.

◆ NodeArray

typedef std::vector<Node *> NodeArray

Definition at line 21 of file aiPathFinder.h.

Function Documentation

◆ find_in_mesh()

Node * find_in_mesh ( NavMesh nav_mesh,
LVecBase3 pos,
int grid_size )

This function allows the user to pass a position and it returns the corresponding node on the navigation mesh.

A very useful function as it allows for dynamic updation of the mesh based on position.

Definition at line 336 of file aiPathFinder.cxx.

Referenced by PathFind::add_obstacle_to_mesh(), PathFollow::check_if_possible(), PathFind::path_find(), and PathFind::path_find().