Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshBuilder.h |
Include |
#include "Detour/DetourNavMeshBuilder.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshBuilder.cpp |
void dtComputeTileOffsetFromRotation
(
const float * position,
const float * rotationCenter,
const float rotationDeg,
const float tileWidth,
const float tileHeight,
int & deltaX,
int & deltaY
)
Compute XY offset caused by the given rotation
Parameter |
Description |
---|---|
position |
Position to rotate. [(x, y, z)] |
rotationCenter |
Rotation center. [(x, y, z)] |
rotationDeg |
Rotation in degrees. |
tileWidth |
Tile width. |
tileHeight |
Tile height. |
deltaX |
Offset X in tile coordinates. |
deltaY |
Offset Y in tile coordinates. |