From 93c35a19f512b55792da89d61e8cbbcb306429ee Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 16 Dec 2020 10:24:18 +0100 Subject: [PATCH] Add NavMeshProperties --- Source/Engine/Navigation/NavigationTypes.h | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Navigation/NavigationTypes.h b/Source/Engine/Navigation/NavigationTypes.h index e786567dd..a5672f342 100644 --- a/Source/Engine/Navigation/NavigationTypes.h +++ b/Source/Engine/Navigation/NavigationTypes.h @@ -3,8 +3,10 @@ #pragma once #include "Engine/Scripting/ScriptingType.h" +#include "Engine/Core/Types/String.h" +#include "Engine/Core/Math/Color.h" #include "Engine/Core/Math/Vector3.h" -#include "FlaxEngine.Gen.h" +#include "Engine/Core/Math/Quaternion.h" /// /// The navigation system agent properties container for navmesh building and querying. @@ -34,6 +36,34 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(NavAgentProperties); API_FIELD() float MaxSlopeAngle = 60.0f; }; +/// +/// The navigation mesh properties container for navmesh building. +/// +API_STRUCT() struct FLAXENGINE_API NavMeshProperties +{ +DECLARE_SCRIPTING_TYPE_MINIMAL(NavMeshProperties); + + /// + /// The navmesh type name (for debugging). + /// + API_FIELD() String Name; + + /// + /// The navmesh type color (for debugging). + /// + API_FIELD() Color Color; + + /// + /// The navmesh rotation applied to navigation surface. Used during building to the rotate scene geometry and to revert back result during path finding queries. Can be used to generate navmesh on walls. + /// + API_FIELD() Quaternion Rotation; + + /// + /// The properties of the agent used to generate walkable navigation surface. + /// + API_FIELD() NavAgentProperties Agent; +}; + /// /// The result information for navigation mesh queries. ///