Panda3D
Functions
aiPathFinder.cxx File Reference

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

#include "aiPathFinder.h"

Go to the source code of this file.

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.cxx.

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().