Panda3D
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. More...
 

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.

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 PathFollow::check_if_possible(), and PathFind::path_find().