Specification of an obstacle. It is the same as a pedModel specification but includes a pointer to a node to which it is attached.
More...
#include <NavMeshObstacle.h>
|
static unsigned int | NO_NEIGHBOR_OBST = std::numeric_limits< unsigned int >::max() |
| The index value if the obstacle has no neighboring obstacle.
|
|
|
NavMeshNode * | _node |
| A nav mesh node to which this obstacle is attached. It could be attached to multiple, but this is the node for which it serves as an edge.
|
|
|
class | NavMeshNode |
|
class | NavMesh |
|
|
enum | NearTypeEnum { FIRST,
MIDDLE,
LAST
} |
| An enumeration to define the type of nearest point - first, middle, last.
|
|
bool | _doubleSided |
| Reports if the obstacle is double sided. More...
|
|
bool | _isConvex |
| Reports if the obstacle is convex around the obstacle's point (_point).
|
|
Obstacle * | _nextObstacle |
| Pointer to the next obstacle in the greater obstacle structure. If the obstacle is open, it could be NULL.
|
|
Vector2 | _point |
| The point from which the obstacle is defined.
|
|
Obstacle * | _prevObstacle |
| Pointer to the previous obstacle in the greater obstacle structure. If the obstacle is open, it could be NULL.
|
|
Vector2 | _unitDir |
| The direction the obstacle extends from the originating point.
|
|
float | _length |
| The distance in the direction the obstacle extends.
|
|
size_t | _id |
| A unique identifier for this obstacle.
|
|
size_t | _class |
| The class of obstacle, used so agents can ignore/include obstacles.
|
|
Specification of an obstacle. It is the same as a pedModel specification but includes a pointer to a node to which it is attached.
const NavMeshNode* Menge::NavMeshObstacle::getNode |
( |
| ) |
const |
|
inline |
Retrieve the nav mesh node to which this obstacle is adjacent.
- Returns
- A pointer to the node.
bool Menge::NavMeshObstacle::loadFromAscii |
( |
std::ifstream & |
f, |
|
|
Vector2 * |
vertices |
|
) |
| |
Sets the obstacle properties from an obstacle definition in the given ascii file stream.
- Parameters
-
f | The input file stream. |
vertices | The array of vertices into which the definition indexes. |
- Returns
- A boolean indicating successful parsing (true) or failure (false).
The documentation for this class was generated from the following files:
- src/menge/MengeCore/resources/NavMeshObstacle.h
- src/menge/MengeCore/resources/NavMeshObstacle.cpp