Navigation
API > API/Plugins > API/Plugins/MotionWarping
| Name | URootMotionModifier |
| Type | class |
| Header File | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Public/RootMotionModifier.h |
| Include Path | #include "RootMotionModifier.h" |
Syntax
UCLASS (MinimalAPI, Abstract, BlueprintType, EditInlineNew)
class URootMotionModifier : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → URootMotionModifier
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
URootMotionModifier
(
const FObjectInitializer& ObjectInitializer |
RootMotionModifier.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActualStartTime | float | Actual playback time when the modifier becomes active | RootMotionModifier.h |
|
| Animation | TWeakObjectPtr< const UAnimSequenceBase > | Source of the root motion we are warping | RootMotionModifier.h |
|
| CurrentPosition | float | Current playback time of the animation | RootMotionModifier.h |
|
| EndTime | float | End time of the warping window | RootMotionModifier.h |
|
| OnActivateDelegate | FOnRootMotionModifierDelegate | Delegate called when this modifier is activated (starts affecting the root motion) | RootMotionModifier.h | |
| OnDeactivateDelegate | FOnRootMotionModifierDelegate | Delegate called when this modifier is deactivated (stops affecting the root motion) | RootMotionModifier.h | |
| OnUpdateDelegate | FOnRootMotionModifierDelegate | Delegate called when this modifier updates while active (affecting the root motion) | RootMotionModifier.h | |
| PlayRate | float | Current play rate of the animation | RootMotionModifier.h |
|
| PreviousPosition | float | Previous playback time of the animation | RootMotionModifier.h |
|
| StartTime | float | Start time of the warping window | RootMotionModifier.h |
|
| StartTransform | FTransform | Character owner transform at the time this modifier becomes active | RootMotionModifier.h |
|
| TotalRootMotionWithinWindow | FTransform | Total root motion within the warping window | RootMotionModifier.h |
|
| Weight | float | Current blend weight of the animation | RootMotionModifier.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| State | ERootMotionModifierState | Current state | RootMotionModifier.h | |
| UMotionWarpingComponent | friend | RootMotionModifier.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawCanvasInEditor
(
FCanvas& Canvas, |
RootMotionModifier.h | ||
virtual void DrawInEditor
(
FPrimitiveDrawInterface* PDI, |
RootMotionModifier.h | ||
AActor * GetActorOwner() |
Returns a pointer to the actor that owns the component that owns this modifier | RootMotionModifier.h | |
const UAnimSequenceBase * GetAnimation() |
RootMotionModifier.h | ||
| Returns a pointer to the Character that owns the component using this modifier. | RootMotionModifier.h | ||
UMotionWarpingBaseAdapter * GetOwnerAdapter() |
Returns a pointer to the adapter to the object being warped | RootMotionModifier.h | |
UMotionWarpingComponent * GetOwnerComponent() |
Returns a pointer to the component that owns this modifier | RootMotionModifier.h | |
ERootMotionModifierState GetState() |
Returns the state of the modifier | RootMotionModifier.h | |
virtual void OnStateChanged
(
ERootMotionModifierState LastState |
Called when the state of the modifier changes | RootMotionModifier.h | |
virtual FTransform ProcessRootMotion
(
const FTransform& InRootMotion, |
RootMotionModifier.h | ||
void SetState
(
ERootMotionModifierState NewState |
Sets the state of the modifier | RootMotionModifier.h | |
virtual void Update
(
const FMotionWarpingUpdateContext& Context |
RootMotionModifier.h |