You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Editor View and Operations(debugger support not yet) - Basic Utility Consideration Base - Built-in Float Parameter Consideration - Basic Blueprint Support #rb mikko.mononen [CL 33665793 by jacob wang in ue5-main branch]
19 lines
649 B
C++
19 lines
649 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "StateTreeConsiderationBase.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(StateTreeConsiderationBase)
|
|
|
|
float FStateTreeConsiderationBase::ComputeNormalizedScore(FStateTreeExecutionContext& Context) const
|
|
{
|
|
const float RawScore = ComputeRawScore(Context);
|
|
const float NormalizedScore = FMath::Clamp<float>(
|
|
FMath::GetRangePct(ResponseCurve.RawScoreLowerBound,
|
|
ResponseCurve.RawScoreUpperBound,
|
|
RawScore),
|
|
0.f, 1.f);
|
|
|
|
constexpr class UCurveFloat* OptionalCurve = nullptr;
|
|
return FAlphaBlend::AlphaToBlendOption(NormalizedScore, ResponseCurve.BlendOption, OptionalCurve);
|
|
}
|