UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSceneVelocityData Class Reference

#include <ScenePrivate.h>

Public Member Functions

void StartFrame (FScene *Scene)
 
bool GetComponentPreviousLocalToWorld (FPrimitiveComponentId PrimitiveComponentId, FMatrix &OutPreviousLocalToWorld) const
 
void UpdateTransform (FPrimitiveSceneInfo *PrimitiveSceneInfo, const FMatrix &LocalToWorld, const FMatrix &PreviousLocalToWorld)
 
void RemoveFromScene (FPrimitiveComponentId PrimitiveComponentId, bool bImmediate)
 
void OverridePreviousTransform (FPrimitiveComponentId PrimitiveComponentId, const FMatrix &PreviousLocalToWorld)
 
void ApplyOffset (FVector Offset)
 

Detailed Description

Tracks primitive transforms so they will be persistent across rendering state recreates.

Member Function Documentation

◆ ApplyOffset()

void FSceneVelocityData::ApplyOffset ( FVector  Offset)
inline

◆ GetComponentPreviousLocalToWorld()

bool FSceneVelocityData::GetComponentPreviousLocalToWorld ( FPrimitiveComponentId  PrimitiveComponentId,
FMatrix OutPreviousLocalToWorld 
) const
inline

Looks up the PreviousLocalToWorld state for the given component. Returns false if none is found (the primitive has never been moved).

◆ OverridePreviousTransform()

void FSceneVelocityData::OverridePreviousTransform ( FPrimitiveComponentId  PrimitiveComponentId,
const FMatrix PreviousLocalToWorld 
)
inline

Overrides a primitive's previous LocalToWorld matrix for this frame only

◆ RemoveFromScene()

void FSceneVelocityData::RemoveFromScene ( FPrimitiveComponentId  PrimitiveComponentId,
bool  bImmediate 
)
inline

◆ StartFrame()

void FSceneVelocityData::StartFrame ( FScene Scene)

Must be called once per frame, even when there are multiple EndDrawingViewports.

◆ UpdateTransform()

void FSceneVelocityData::UpdateTransform ( FPrimitiveSceneInfo PrimitiveSceneInfo,
const FMatrix LocalToWorld,
const FMatrix PreviousLocalToWorld 
)
inline

Updates a primitives current LocalToWorld state.


The documentation for this class was generated from the following files: