FSimpleParametricMotion

Extremely simple struct for defining parametric motion. This is editable in [UParametricMovementComponent](API\Plugins\NetworkPredictionExtras\UParametricMovementComponent)'s defaults, and also used by the simulation code.

Choose your operating system:

Windows

macOS

Linux

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/ParametricMovement.h

Include

#include "ParametricMovement.h"

Syntax

USTRUCT(BlueprintType)
struct FSimpleParametricMotion

Remarks

Extremely simple struct for defining parametric motion. This is editable in UParametricMovementComponent's defaults, and also used by the simulation code.

Variables

Name Description

Public variable

FTransform

 

CachedStartingTransform

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

float

 

MaxTime

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

float

 

MinTime

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FVector

 

ParametricDelta

Functions

Name Description

Public function Const

void

 

AdvanceParametricTime

(
    const float InPosition,
    const float InPlayRate,
    float& OutPosition,
    float& OutPlayRate,
    const float DeltaTimeSeconds
)

Advance parametric time. This is meant to do simple things like looping/reversing etc.

Public function Const

void

 

MapTimeToTransform

(
    const float InPosition,
    FTransform& OutTransform
)

Actually turn the given position into a transform. Again, should be static and not conditional on changing state outside of the network sim.