mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Use mathlib SIMD wrappers instead, this is to maintain compatibility across different platforms/compilers. * Moved camera distance logic to separate method.
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#ifndef AI_UTILITY_SHARED_H
|
|
#define AI_UTILITY_SHARED_H
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Forward declarations
|
|
//------------------------------------------------------------------------------
|
|
class dtNavMesh;
|
|
class dtMeshTile;
|
|
class CAI_Network;
|
|
class Vector3D;
|
|
class Color;
|
|
|
|
//------------------------------------------------------------------------------
|
|
//
|
|
//------------------------------------------------------------------------------
|
|
class CAI_Utility
|
|
{
|
|
public:
|
|
CAI_Utility(void);
|
|
void DrawAIScriptNetwork(const CAI_Network* pAINetwork) const;
|
|
void DrawNavMeshBVTree(dtNavMesh* mesh = nullptr) const;
|
|
void DrawNavMeshPortals(dtNavMesh* mesh = nullptr) const;
|
|
void DrawNavMeshPolys(dtNavMesh* mesh = nullptr) const;
|
|
void DrawNavMeshPolyBoundaries(dtNavMesh* mesh = nullptr) const;
|
|
__m128i PackNodeLink(int32_t a, int32_t b, int32_t c = 0, int32_t d = 0) const;
|
|
int GetNearestNodeToPos(const CAI_Network* pAINetwork, const Vector3D* vec) const;
|
|
bool IsTileWithinRange(const dtMeshTile* pTile, const Vector3D& vCamera, const float flCameraRadius) const;
|
|
|
|
private:
|
|
Color m_BoxColor;
|
|
Color m_LinkColor;
|
|
};
|
|
|
|
extern CAI_Utility* g_pAIUtility;
|
|
#endif // AI_UTILITY_SHARED_H
|