FRootMotionSourceGroup::PrepareRootMotion

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

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.

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