dtComputeTileOffsetFromRotation

Compute XY offset caused by the given rotation

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshBuilder.h

Include

#include "Detour/DetourNavMeshBuilder.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshBuilder.cpp

Syntax

void dtComputeTileOffsetFromRotation
(
    const float * position,
    const float * rotationCenter,
    const float rotationDeg,
    const float tileWidth,
    const float tileHeight,
    int & deltaX,
    int & deltaY
)

Remarks

Compute XY offset caused by the given rotation

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss