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.

Windows
MacOS
Linux

References

Module

NetworkPredictionExtras

Header

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

Include

#include "ParametricMovement.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss