Navigation
API > API/Plugins > API/Plugins/MotionWarping
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- URootMotionModifier
- URootMotionModifier_Scale
- URootMotionModifier_Warp
- UDEPRECATED_RootMotionModifier_SimpleWarp
- URootMotionModifier_AdjustmentBlendWarp
- URootMotionModifier_SkewWarp
References
| Module | MotionWarping |
| Header | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Public/RootMotionModifier.h |
| Include | #include "RootMotionModifier.h" |
Syntax
UCLASS&40;Abstract, BlueprintType, EditInlineNew&41;
class URootMotionModifier : public UObject
Remarks
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | ActualStartTime | Actual playback time when the modifier becomes active | |
| TWeakObjectPtr< const UAnimSequenceBase > | Animation | Source of the root motion we are warping | |
| float | CurrentPosition | Current playback time of the animation | |
| float | EndTime | End time of the warping window | |
| FOnRootMotionModifierDelegate | OnActivateDelegate | Delegate called when this modifier is activated (starts affecting the root motion) | |
| FOnRootMotionModifierDelegate | OnDeactivateDelegate | Delegate called when this modifier is deactivated (stops affecting the root motion) | |
| FOnRootMotionModifierDelegate | OnUpdateDelegate | Delegate called when this modifier updates while active (affecting the root motion) | |
| float | PreviousPosition | Previous playback time of the animation | |
| float | StartTime | Start time of the warping window | |
| FTransform | StartTransform | Character owner transform at the time this modifier becomes active | |
| float | Weight | Current blend weight of the animation |
Constructors
| Type | Name | Description | |
|---|---|---|---|
URootMotionModifier
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const UAnimSequenceBase * | GetAnimation () |
||
| ACharacter * | Returns a pointer to the character that owns the component that owns this modifier | ||
| UMotionWarpingComponent * | Returns a pointer to the component that owns this modifier | ||
| ERootMotionModifierState | GetState () |
Returns the state of the modifier | |
| void | OnStateChanged
(
ERootMotionModifierState LastState |
Called when the state of the modifier changes | |
| FTransform | ProcessRootMotion
(
const FTransform& InRootMotion, |
||
| void | SetState
(
ERootMotionModifierState NewState |
Sets the state of the modifier | |
| void | Update
(
const FMotionWarpingUpdateContext& Context |