2024-09-02 09:01:39 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2024-05-09 09:45:57 -04:00
|
|
|
|
|
|
|
|
#include "NavMesh/LinkGenerationConfig.h"
|
2024-07-16 12:28:09 -04:00
|
|
|
#include "BaseGeneratedNavLinksProxy.h"
|
2024-08-15 11:45:38 -04:00
|
|
|
#include "NavAreas/NavArea_Default.h"
|
2024-05-09 09:45:57 -04:00
|
|
|
|
|
|
|
|
#if WITH_RECAST
|
|
|
|
|
#include "Detour/DetourNavLinkBuilderConfig.h"
|
2024-09-02 09:01:39 -04:00
|
|
|
#endif //WITH_RECAST
|
2024-05-09 09:45:57 -04:00
|
|
|
|
2024-08-15 11:45:38 -04:00
|
|
|
FNavLinkGenerationJumpDownConfig::FNavLinkGenerationJumpDownConfig()
|
|
|
|
|
{
|
|
|
|
|
AreaClass = UNavArea_Default::StaticClass();
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-02 09:01:39 -04:00
|
|
|
#if WITH_RECAST
|
|
|
|
|
|
2024-05-09 09:45:57 -04:00
|
|
|
void FNavLinkGenerationJumpDownConfig::CopyToDetourConfig(dtNavLinkBuilderJumpDownConfig& OutDetourConfig) const
|
|
|
|
|
{
|
2024-05-27 08:26:28 -04:00
|
|
|
OutDetourConfig.enabled = bEnabled;
|
2024-05-09 09:45:57 -04:00
|
|
|
OutDetourConfig.jumpLength = JumpLength;
|
|
|
|
|
OutDetourConfig.jumpDistanceFromEdge = JumpDistanceFromEdge;
|
|
|
|
|
OutDetourConfig.jumpMaxDepth = JumpMaxDepth;
|
2024-07-30 11:55:29 -04:00
|
|
|
OutDetourConfig.jumpHeight = JumpHeight;
|
2024-05-09 09:45:57 -04:00
|
|
|
OutDetourConfig.jumpEndsHeightTolerance = JumpEndsHeightTolerance;
|
2024-05-15 11:19:57 -04:00
|
|
|
OutDetourConfig.samplingSeparationFactor = SamplingSeparationFactor;
|
2024-07-16 12:28:09 -04:00
|
|
|
OutDetourConfig.filterDistanceThreshold = FilterDistanceThreshold;
|
2024-10-01 17:40:16 -04:00
|
|
|
OutDetourConfig.linkBuilderFlags = LinkBuilderFlags;
|
2024-07-16 12:28:09 -04:00
|
|
|
|
|
|
|
|
if (LinkProxy)
|
|
|
|
|
{
|
|
|
|
|
OutDetourConfig.linkUserId = LinkProxy->GetId().GetId();
|
|
|
|
|
}
|
2024-05-09 09:45:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //WITH_RECAST
|