UMotionWarpingComponent

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MotionWarping

Header

/Engine/Plugins/Experimental/Animation/MotionWarping/Source/MotionWarping/Public/MotionWarpingComponent.h

Include

#include "MotionWarpingComponent.h"

Syntax

UCLASS(ClassGroup=Movement, Meta=(BlueprintSpawnableComponent))
class UMotionWarpingComponent : public UActorComponent

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

bSearchForWindowsInAnimsWithinMontages

Whether to look inside animations within montage when looking for warping windows

Protected variable UProperty Transient

TWeakObjectPtr<...

 

CharacterOwner

Character this component belongs to

Protected variable UProperty Transient

TArray< URootMo...

 

Modifiers

List of root motion modifiers

Public variable UProperty Category BlueprintAssignable

FMotionWarpingP...

 

OnPreUpdate

Event called before Root Motion Modifiers are updated

Protected variable

TOptional< FVec...

 

OriginalRootMotionAccum

Protected variable

TOptional< FVec...

 

WarpedRootMotionAccum

Protected variable UProperty Transient

TMap< FName, FM...

 

WarpTargetMap

Constructors

Name Description

Public function

UMotionWarpingComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

int32

 

AddModifier

(
    URootMotionModifier* Modifier
)

Add a new modifier

Public function

URootMotionM...

 

AddModifierFromTemplate

(
    URootMotionModifier* Template,
    const UAnimSequenceBase* Anima...,
    float StartTime,
    float EndTime
)

Public function UFunction BlueprintCallable, Category

void

 

AddOrUpdateWarpTarget

(
    FName WarpTargetName,
    const FMotionWarpingTarget& WarpTa...
)

Adds or update a target associated with a specified name

Public function UFunction BlueprintCallable, Category

void

 

AddOrUpdateWarpTargetFromComponent

(
    FName WarpTargetName,
    const USceneComponent* Compone...,
    FName BoneName,
    bool bFollowComponent
)

Create and adds or update a target associated with a specified name

Public function UFunction BlueprintCallable, Category

void

 

AddOrUpdateWarpTargetFromLocation

(
    FName WarpTargetName,
    FVector TargetLocation
)

Create and adds or update a target associated with a specified name

Public function UFunction BlueprintCallable, Category

void

 

AddOrUpdateWarpTargetFromLocationAndRotation

(
    FName WarpTargetName,
    FVector TargetLocation,
    FRotator TargetRotation
)

Create and adds or update a target associated with a specified name

Public function UFunction BlueprintCallable, Category

void

 

AddOrUpdateWarpTargetFromTransform

(
    FName WarpTargetName,
    FTransform TargetTransform
)

Create and adds or update a target associated with a specified name

Public function Const

bool

 

ContainsModifier

(
    const UAnimSequenceBase* Anima...,
    float StartTime,
    float EndTime
)

Check if we contain a RootMotionModifier for the supplied animation and time range

Public function UFunction BlueprintCallable, Category

void

 

DisableAllRootMotionModifiers()

Mark all the modifiers as Disable

Public function Const

const FMotio...

 

FindWarpTarget

(
    const FName& WarpTargetName
)

Find the target associated with a specified name

Public function Const

ACharacter &...

 

GetCharacterOwner()

Gets the character this component belongs to

Public function Const

const TArray...

 

GetModifiers()

Returns the list of root motion modifiers

Protected function

FTransform

 

ProcessRootMotionPostConvertToWorld

(
    const FTransform& InRootMotion,
    UCharacterMovementComponent* C...,
    float DeltaSeconds
)

Protected function

FTransform

 

ProcessRootMotionPreConvertToWorld

(
    const FTransform& InRootMotion,
    UCharacterMovementComponent* C...,
    float DeltaSeconds
)

Public function UFunction BlueprintCallable, Category

int32

 

RemoveWarpTarget

(
    FName WarpTargetName
)

Removes the warp target associated with the specified key

Protected function

void

 

Update()

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

InitializeComponent()

Initializes the component.