Polyphase Game Engine
Loading...
Searching...
No Matches
NavMesh3d.h
Go to the documentation of this file.
1#pragma once
2
3#include "Nodes/3D/Box3d.h"
4
5class NavMesh3D : public Box3D
6{
7public:
8
10
11 NavMesh3D();
12 ~NavMesh3D();
13
14 virtual const char* GetTypeName() const override;
15 virtual void Create() override;
16 virtual void GatherProperties(std::vector<Property>& outProps) override;
17 virtual void GatherProxyDraws(std::vector<DebugDraw>& inoutDraws) override;
18
19 void SetNavBounds(bool navBounds);
20 bool IsNavBounds() const;
21 bool IsNavOverlayEnabled() const;
22 bool IsNavNegatorEnabled() const;
23 bool IsCullWallsEnabled() const;
24 float GetWallCullThreshold() const;
25protected:
26 bool mNavBounds = true;
27 bool mNavOverlay = true;
28 bool mNavNegator = false;
29 bool mCullWalls = false;
30 float mWallCullThreshold = 0.2f;
32 glm::vec4 mNavOverlayWireColor = glm::vec4(0.1f, 1.0f, 0.25f, 1.0f);
33};
Definition Box3d.h:6
Definition NavMesh3d.h:6
float GetWallCullThreshold() const
Definition NavMesh3d.cpp:73
glm::vec4 mNavOverlayWireColor
Definition NavMesh3d.h:32
bool IsNavNegatorEnabled() const
Definition NavMesh3d.cpp:63
~NavMesh3D()
Definition NavMesh3d.cpp:17
virtual void Create() override
Definition NavMesh3d.cpp:26
bool IsNavBounds() const
Definition NavMesh3d.cpp:53
void SetNavBounds(bool navBounds)
Definition NavMesh3d.cpp:48
NavMesh3D()
Definition NavMesh3d.cpp:11
bool mNavOverlay
Definition NavMesh3d.h:27
virtual void GatherProxyDraws(std::vector< DebugDraw > &inoutDraws) override
Definition NavMesh3d.cpp:78
bool IsCullWallsEnabled() const
Definition NavMesh3d.cpp:68
bool mNavBounds
Definition NavMesh3d.h:26
float mWallCullThreshold
Definition NavMesh3d.h:30
bool IsNavOverlayEnabled() const
Definition NavMesh3d.cpp:58
virtual const char * GetTypeName() const override
Definition NavMesh3d.cpp:21
virtual void GatherProperties(std::vector< Property > &outProps) override
Definition NavMesh3d.cpp:32
float mNavOverlayLineThickness
Definition NavMesh3d.h:31
bool mNavNegator
Definition NavMesh3d.h:28
bool mCullWalls
Definition NavMesh3d.h:29
DECLARE_NODE(NavMesh3D, Box3D)