Panda3D
Public Types | Public Member Functions

AINode Class Reference

This class is used to assign the nodes on the mesh. More...

List of all members.

Public Types

enum  Status { STOpen = 0, STClose = 1, STNeutral = 2 }

Public Member Functions

 AINode (int grid_x, int grid_y, VBase3 pos, float w, float l, float h)
bool contains (float x, float y)
 This is a handy function which returns true if the passed position is within the node's dimensions.

Detailed Description

This class is used to assign the nodes on the mesh.

It holds all the data necessary to compute A* algorithm. It also maintains a lot of vital information such as the neighbor nodes of each node and also its position on the mesh. Note: The Mesh Generator which is a standalone tool makes use of this class to generate the nodes on the mesh.


Member Enumeration Documentation

enum Status
Enumerator:
STOpen 
STClose 
STNeutral 

Constructor & Destructor Documentation

AINode ( int  grid_x,
int  grid_y,
VBase3  pos,
float  w,
float  l,
float  h 
)

Member Function Documentation

bool contains ( float  x,
float  y 
)

This is a handy function which returns true if the passed position is within the node's dimensions.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties