Add support for masking navmesh agents in NavMeshBoundsVolume

This commit is contained in:
Wojtek Figat
2021-01-15 11:59:21 +01:00
parent 2c2c1af97f
commit 65d3883f03
3 changed files with 38 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#pragma once
#include "Engine/Level/Actors/BoxVolume.h"
#include "NavigationTypes.h"
/// <summary>
/// A special type of volume that defines the areas of the scene in which navigation meshes are generated.
@@ -10,6 +11,20 @@
API_CLASS() class FLAXENGINE_API NavMeshBoundsVolume : public BoxVolume
{
DECLARE_SCENE_OBJECT(NavMeshBoundsVolume);
public:
/// <summary>
/// The agent types used by this navmesh bounds volume (from navigation settings). Can be used to generate navmesh for a certain set of agents.
/// </summary>
API_FIELD(Attributes="EditorDisplay(\"Box Volume\"), EditorOrder(10)")
NavAgentMask AgentsMask;
public:
// [BoxVolume]
void Serialize(SerializeStream& stream, const void* otherObj) override;
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override;
protected:
// [BoxVolume]