FTrajectorySampleRange

A container of ordered trajectory samples and associated sampling rate.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Animation/MotionTrajectoryTypes.h

Include

#include "Animation/MotionTrajectoryTypes.h"

Syntax

struct FTrajectorySampleRange

Remarks

A container of ordered trajectory samples and associated sampling rate.

Variables

Name Description

Public variable

int32

 

SampleRate

Per-second sample rate of the trajectory sample container.

Public variable

TArray< FTrajec...

 

Samples

Linearly ordered (Time or Distance domain) container for past, present, and future trajectory samples.

Constructors

Name Description

Public function

FTrajectorySampleRange()

Constructors.

Public function

FTrajectorySampleRange

(
    int32 Rate
)

Functions

Name Description

Public function Const

void

 

DebugDrawTrajectory

(
    bool bEnable,
    const UWorld* World,
    const FTransform& WorldTransform,
    const FLinearColor PredictionColor,
    const FLinearColor HistoryColor,
    float ArrowScale,
    float ArrowSize,
    float ArrowThickness
)

Debug draw in-world trajectory samples and optional corresponding information.

Public function Const

bool

 

HasOnlyZeroSamples()

Determine if all trajectory samples are default values.

Public function Const

bool

 

HasSamples()

Determine if any trajectory samples are present.

Public function Static

FTrajectoryS...

 

IterSampleTrajectory

(
    const Container& Samples,
    ETrajectorySampleDomain DomainType,
    float DomainValue,
    int32& InitialIdx,
    bool bSmoothInterp
)

Iterator for precise subsampling of the trajectory.

Public function

void

 

RemoveHistory()

Removes history samples from trajectory (retains present and future)

Constants