Files
2024-10-01 17:40:16 -04:00

37 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "NavMesh/LinkGenerationConfig.h"
#include "BaseGeneratedNavLinksProxy.h"
#include "NavAreas/NavArea_Default.h"
#if WITH_RECAST
#include "Detour/DetourNavLinkBuilderConfig.h"
#endif //WITH_RECAST
FNavLinkGenerationJumpDownConfig::FNavLinkGenerationJumpDownConfig()
{
AreaClass = UNavArea_Default::StaticClass();
}
#if WITH_RECAST
void FNavLinkGenerationJumpDownConfig::CopyToDetourConfig(dtNavLinkBuilderJumpDownConfig& OutDetourConfig) const
{
OutDetourConfig.enabled = bEnabled;
OutDetourConfig.jumpLength = JumpLength;
OutDetourConfig.jumpDistanceFromEdge = JumpDistanceFromEdge;
OutDetourConfig.jumpMaxDepth = JumpMaxDepth;
OutDetourConfig.jumpHeight = JumpHeight;
OutDetourConfig.jumpEndsHeightTolerance = JumpEndsHeightTolerance;
OutDetourConfig.samplingSeparationFactor = SamplingSeparationFactor;
OutDetourConfig.filterDistanceThreshold = FilterDistanceThreshold;
OutDetourConfig.linkBuilderFlags = LinkBuilderFlags;
if (LinkProxy)
{
OutDetourConfig.linkUserId = LinkProxy->GetId().GetId();
}
}
#endif //WITH_RECAST