Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameplayTask
- UAbilityTask
- UAbilityTask_ApplyRootMotion_Base
- UAbilityTask_ApplyRootMotionMoveToActorForce
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToActorForce.h |
| Include | #include "Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToActorForce.h" |
Syntax
UCLASS&40;&41;
class UAbilityTask_ApplyRootMotionMoveToActorForce : public UAbilityTask_ApplyRootMotion_Base
Remarks
Applies force to character's movement
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDisableDestinationReachedInterrupt | By default, this force ends when the destination is reached. | |
| bool | bRestrictSpeedToExpected | If enabled, we limit velocity to the initial expected velocity to go distance to the target over Duration. | |
| bool | bSetNewMovementMode | ||
| float | Duration | ||
| TEnumAsByte< EMovementMode > | NewMovementMode | ||
| ERootMotionMoveToActorTargetOffsetType | OffsetAlignment | ||
| FApplyRootMotionMoveToActorForceDelegate | OnFinished | ||
| TObjectPtr< UCurveVector > | PathOffsetCurve | ||
| uint8 | PreviousCustomMode | ||
| EMovementMode | PreviousMovementMode | ||
| FVector | StartLocation | ||
| TObjectPtr< AActor > | TargetActor | ||
| FDelegateHandle | TargetActorSwapHandle | ||
| TObjectPtr< UCurveFloat > | TargetLerpSpeedHorizontalCurve | ||
| TObjectPtr< UCurveFloat > | TargetLerpSpeedVerticalCurve | ||
| FVector | TargetLocation | ||
| FVector | TargetLocationOffset | ||
| TObjectPtr< UCurveFloat > | TimeMappingCurve | Maps real time to movement fraction curve to affect the speed of the movement through the path Curve X is 0 to 1 normalized real time (a fraction of the duration) Curve Y is 0 to 1 is what percent of the move should be at a given X Default if unset is a 1:1 correspondence |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAbilityTask_ApplyRootMotionMoveToActorForce
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UAbilityTask_ApplyRootMotionMoveToActorForce * | ApplyRootMotionMoveToActorForce
(
UGameplayAbility* OwningAbility, |
Apply force to character's movement | |
| UAbilityTask_ApplyRootMotionMoveToActorForce * | ApplyRootMotionMoveToTargetDataActorForce
(
UGameplayAbility* OwningAbility, |
Apply force to character's movement using an index into targetData instead of using an actor directly. | |
| FVector | |||
| void | |||
| void | OnTargetActorSwapped
(
AActor* OriginalTarget, |
||
| void | SetRootMotionTargetLocation
(
FVector NewTargetLocation |
||
| bool | UpdateTargetLocation
(
float DeltaTime |
Overridden from UAbilityTask_ApplyRootMotion_Base
| Type | Name | Description | |
|---|---|---|---|
| void |
Overridden from UGameplayTask
| Type | Name | Description | |
|---|---|---|---|
| void | OnDestroy
(
bool bInOwnerFinished |
End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending. | |
| void | TickTask
(
float DeltaTime |
Tick function for this task, if bTickingTask == true |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called right before being marked for destruction due to network replication |