class

FRootMotionSources

Module
Physics
Header
#include "Physics/RootMotionSource.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolApplyAdvances every source by dt and folds them into velocity.
Vec3OffsetPosition the source wants at time t, relative to its start; the velocity a step uses is the difference over the step, so a replay that splits the same time differently still lands on the same curve.

Function details

Apply

C++
static bool Apply(std::vector<FRootMotionSource>& sources, const Vec3& position, float dt, Vec3& velocity, bool& outIgnoreGravity)

Advances every source by dt and folds them into velocity. Returns true when any source ran this step (gravity off when one asked for it, reported through outIgnoreGravity). Finished sources are removed.

Offset

C++
static Vec3 Offset(const FRootMotionSource& source, float t)

Position the source wants at time t, relative to its start; the velocity a step uses is the difference over the step, so a replay that splits the same time differently still lands on the same curve.

Generated from Physics/RootMotionSource.h via physics.json · Nov 4, 2026Version 1.0.0