UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MotionTrajectoryTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Algo/BinarySearch.h"
7#include "MotionTrajectoryTypes.generated.h"
8
9USTRUCT(BlueprintType, Category="Motion Trajectory")
10struct UE_DEPRECATED(5.6, "FTrajectorySample has been deprecated. Instead use FTransformTrajectorySample.") FTrajectorySample
11{
13
14 // The relative accumulated time that this sample is associated with
15 // Zero value for instantaneous, negative values for the past, and positive values for the future
16 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Motion Trajectory")
17 float AccumulatedSeconds = 0.f;
18
19 // Position relative to the sampled in-motion object
20 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Motion Trajectory")
22
23 // Linear velocity relative to the sampled in-motion object
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Motion Trajectory")
26
28 // Linear interpolation of all parameters of two trajectory samples
29 ENGINE_API FTrajectorySample Lerp(const FTrajectorySample& Sample, float Alpha) const;
30
31 // Centripetal Catmull–Rom spline interpolation of all parameters of two trajectory samples
33 , const FTrajectorySample& Sample
35 , float Alpha) const;
37
38 // Concatenates DeltaTransform before the current transform is applied and shifts the accumulated time by
39 // DeltaSeconds
40 ENGINE_API void PrependOffset(const FTransform DeltaTransform, float DeltaSeconds);
41
43
44 // Determines if all sample properties are zeroed
45 ENGINE_API bool IsZeroSample() const;
46};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition TrajectoryTypes.h:19
static CORE_API const TTransform< double > Identity
Definition TransformNonVectorized.h:58
static CORE_API const TVector< double > ZeroVector
Definition Vector.h:79