A walkmesh.
More...
#include <Walkmesh.h>
◆ Walkmesh()
◆ ~Walkmesh()
◆ AddTriangle()
Adds a triangle to the walkmesh.
- Parameters
-
[in] | triangle | Triangle to add. |
◆ Clear()
Deletes all the triangles in the walkmesh.
◆ GetA()
const Ogre::Vector3 & Walkmesh::GetA |
( |
unsigned int |
triangle_id | ) |
const |
Retrieves the first side of a triangle.
- Parameters
-
[in] | triangle_id | ID of the triangle. |
- Returns
- The side of the triangle. Ogre::Vector3::ZERO if the triangle doesn't exist.
◆ GetAccessSide()
int Walkmesh::GetAccessSide |
( |
unsigned int |
triangle_id, |
|
|
unsigned char |
side |
|
) |
| const |
Checks which other triangle is accessed from one side of a triangle.
- Parameters
-
[in] | triangle_id | Triangle. |
[in] | side | The side index in the triangle. |
- Returns
- The id of the triangle accessed from the indicated triangle and side, or -1 if no triangle can be accessed.
◆ GetB()
const Ogre::Vector3 & Walkmesh::GetB |
( |
unsigned int |
triangle_id | ) |
const |
Retrieves the second side of a triangle.
- Parameters
-
[in] | triangle_id | ID of the triangle. |
- Returns
- The side of the triangle. Ogre::Vector3::ZERO if the triangle doesn't exist.
◆ GetC()
const Ogre::Vector3 & Walkmesh::GetC |
( |
unsigned int |
triangle_id | ) |
const |
Retrieves the third side of a triangle.
- Parameters
-
[in] | triangle_id | ID of the triangle. |
- Returns
- The side of the triangle. Ogre::Vector3::ZERO if the triangle doesn't exist.
◆ GetNumberOfTriangles()
int Walkmesh::GetNumberOfTriangles |
( |
| ) |
const |
Counts the triangles in the walkmesh.
- Returns
- The number of triangles in the walkmesh.
◆ IsLocked()
bool Walkmesh::IsLocked |
( |
unsigned int |
triangle_id | ) |
const |
Checks if a triangle is locked.
- Parameters
-
[in] | triangle_id | ID of the trinagle. |
- Returns
- True if the triangle is locked, false otherwise.
◆ load()
Loads a walkmesh from a file.
- Parameters
-
◆ LockWalkmesh()
void Walkmesh::LockWalkmesh |
( |
unsigned int |
triangle_id, |
|
|
bool |
lock |
|
) |
| |
Locks or unlocks a triangle.
- Parameters
-
[in] | triangle_id | ID of the triangle. |
[in] | lock | True to lock, false to unlock. |
◆ UpdateDebug()
void Walkmesh::UpdateDebug |
( |
| ) |
|
Updates the walkmesh with debug information.
◆ triangles_
The documentation for this class was generated from the following files: