FRootMotionSourceGroup::PrepareRootMotion

Generates root motion by accumulating transforms through current root motion sources.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/RootMotionSource.h

Include

#include "GameFramework/RootMotionSource.h"

Source

/Engine/Source/Runtime/Engine/Private/GameFramework/RootMotionSource.cpp

Syntax

void PrepareRootMotion
(
    float DeltaTime,
    const ACharacter & Character,
    const UCharacterMovementComponent & InMoveComponent,
    bool bForcePrepareAll
)

Remarks

Generates root motion by accumulating transforms through current root motion sources.

Parameters

Parameter

Description

bForcePrepareAll

Used during "live" PerformMovements() to ensure all sources get prepared Needed due to SavedMove playback/server correction only applying corrections to Sources that need updating, so in that case we only Prepare those that need it.