2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2017-06-21 10:25:35 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
#include "Animation/AnimNodeBase.h"
|
|
|
|
|
#include "AnimNode_MakeDynamicAdditive.generated.h"
|
|
|
|
|
|
|
|
|
|
USTRUCT(BlueprintInternalUseOnly)
|
2023-06-17 18:13:06 -04:00
|
|
|
struct FAnimNode_MakeDynamicAdditive : public FAnimNode_Base
|
2017-06-21 10:25:35 -04:00
|
|
|
{
|
|
|
|
|
GENERATED_USTRUCT_BODY()
|
|
|
|
|
|
|
|
|
|
// Reference pose for additive delta calculation
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Links)
|
|
|
|
|
FPoseLink Base;
|
|
|
|
|
|
|
|
|
|
// Pose to make additive
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Links)
|
|
|
|
|
FPoseLink Additive;
|
|
|
|
|
|
|
|
|
|
// Do additive delta calculation in mesh space
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Settings)
|
|
|
|
|
bool bMeshSpaceAdditive;
|
|
|
|
|
|
|
|
|
|
public:
|
2023-06-17 18:13:06 -04:00
|
|
|
ANIMGRAPHRUNTIME_API FAnimNode_MakeDynamicAdditive();
|
2017-06-21 10:25:35 -04:00
|
|
|
|
|
|
|
|
// FAnimNode_Base interface
|
2023-06-17 18:13:06 -04:00
|
|
|
ANIMGRAPHRUNTIME_API virtual void Initialize_AnyThread(const FAnimationInitializeContext& Context) override;
|
|
|
|
|
ANIMGRAPHRUNTIME_API virtual void CacheBones_AnyThread(const FAnimationCacheBonesContext& Context) override;
|
|
|
|
|
ANIMGRAPHRUNTIME_API virtual void Update_AnyThread(const FAnimationUpdateContext& Context) override;
|
|
|
|
|
ANIMGRAPHRUNTIME_API virtual void Evaluate_AnyThread(FPoseContext& Output) override;
|
|
|
|
|
ANIMGRAPHRUNTIME_API virtual void GatherDebugData(FNodeDebugData& DebugData) override;
|
2017-06-21 10:25:35 -04:00
|
|
|
// End of FAnimNode_Base interface
|
|
|
|
|
|
|
|
|
|
};
|