![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MotionVectorSimulation.h>
Inheritance diagram for FMotionVectorSimulation:Static Public Member Functions | |
| static ENGINE_API FMotionVectorSimulation & | Get () |
| static ENGINE_API bool | IsEnabled () |
Static Public Member Functions inherited from FTickableGameObject | |
| static ENGINE_API void | TickObjects (UWorld *World, ELevelTick LevelTickType, bool bIsPaused, float DeltaSeconds) |
Additional Inherited Members | |
Static Protected Member Functions inherited from FTickableObjectBase | |
| static ENGINE_API void | SimpleTickObjects (FTickableStatics &Statics, TFunctionRef< void(FTickableObjectBase *)> TickFunc) |
Singleton class used for optionally overriding previous transforms for motion vector computation. This predominantly used by Sequencer on camera cut frames to forcibly inform the renderer of simulated trajectories for primitive components and cameras. Transforms are stored in an unintrusive sparse map per-component to avoid paying a memory cost for all components. Simulated transforms are only valid for the frame that they were added, and are removed on a subsequent tick.
Clear the simulated previous transform for the specified component
| Object | The Object to clear the previous transform for |
|
static |
Access the singleton instance for motion vector simulation
Returns the size of heap memory allocated internally by this listener
Reimplemented from FUObjectArray::FUObjectDeleteListener.
| TOptional< FTransform > FMotionVectorSimulation::GetPreviousTransform | ( | UObject * | Object | ) | const |
Check if the specified uboject has a simulated transform and return the result as an optional transform.
| Object | The object to retrieve a previous transform for |
| bool FMotionVectorSimulation::GetPreviousTransform | ( | UObject * | Object, |
| FTransform * | OutTransform | ||
| ) | const |
Check if the specified scene component has a simulated transform, setting the specified transform if so.
| Object | The Object to retrieve a previous transform for |
| OutTransform | A valid (non-null) pointer to a transform to receive the simulated transform if possible. |
|
static |
Check whether motion vector simulation is enabled. When disabled, no transforms will be returned.
| void FMotionVectorSimulation::SetPreviousTransform | ( | UObject * | Object, |
| const FTransform & | SimulatedPreviousTransform | ||
| ) |
Assign a simulated previous frame transform for the specified object. Overwrites any existing simulated transform.
| Object | The Object to assign the previous transform to |
| SimulatedPreviousTransform | The simulated transform that this component had on the last frame |