![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Detour/DetourNavMeshBuilder.h"#include "Detour/DetourNavMesh.h"#include "Detour/DetourCommon.h"#include <limits>Classes | |
| struct | BVItem |
Functions | |
| int | longestAxis (unsigned short x, unsigned short y, unsigned short z) |
| bool | dtCreateNavMeshData (dtNavMeshCreateParams *params, unsigned char **outData, int *outDataSize) |
| bool | dtNavMeshHeaderSwapEndian (unsigned char *data, const int) |
| bool | dtNavMeshDataSwapEndian (unsigned char *data, const int) |
| bool | dtTransformTileData (unsigned char *data, const int dataSize, const int offsetX, const int offsetY, const dtReal tileWidth, const dtReal tileHeight, const dtReal rotationDeg, const dtReal bvQuantFactor) |
| void | dtComputeTileOffsetFromRotation (const dtReal *position, const dtReal *rotationCenter, const dtReal rotationDeg, const dtReal tileWidth, const dtReal tileHeight, int &deltaX, int &deltaY) |
| void dtComputeTileOffsetFromRotation | ( | const dtReal * | position, |
| const dtReal * | rotationCenter, | ||
| const dtReal | rotationDeg, | ||
| const dtReal | tileWidth, | ||
| const dtReal | tileHeight, | ||
| int & | deltaX, | ||
| int & | deltaY | ||
| ) |
Compute XY offset caused by the given rotation
| [in] | position | Position to rotate. [(x, y, z)] |
| [in] | rotationCenter | Rotation center. [(x, y, z)] |
| [in] | rotationDeg | Rotation in degrees. |
| [in] | tileWidth | Tile width. |
| [in] | tileHeight | Tile height. |
| [out] | deltaX | Offset X in tile coordinates. |
| [out] | deltaY | Offset Y in tile coordinates. |
Swaps the endianess of the tile data's header (dtMeshHeader).
| [in,out] | data | The tile data array. |
| [in] | dataSize | The size of the data array. |
| bool dtTransformTileData | ( | unsigned char * | data, |
| const int | dataSize, | ||
| const int | offsetX, | ||
| const int | offsetY, | ||
| const dtReal | tileWidth, | ||
| const dtReal | tileHeight, | ||
| const dtReal | rotationDeg, | ||
| const dtReal | bvQuantFactor | ||
| ) |
Offset and rotate around center the data in the tile
| [in,out] | data | Data of the tile mesh. (See: dtCreateNavMeshData) |
| [in] | dataSize | Data size of the tile mesh. |
| [in] | offsetX | X offset in tile coordinates. |
| [in] | offsetY | Y offset in tile coordinates. |
| [in] | tileWidth | Tile width. |
| [in] | tileHeight | Tile height. |
| [in] | rotationDeg | Rotation in degrees. |