Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObject
- IGameplayTaskOwnerInterface
- UGameplayTask
- UAbilityTask
- UAbilityTask_ApplyRootMotion_Base
- UAbilityTask_ApplyRootMotionMoveToForce
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToForce.h |
| Include | #include "Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToForce.h" |
Syntax
UCLASS ()
class UAbilityTask_ApplyRootMotionMoveToForce : public UAbilityTask_ApplyRootMotion_Base
Remarks
Applies force to character's movement
Variables
| Type | Name | Description | |
|---|---|---|---|
| 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 | ||
| FApplyRootMotionMoveToForceDelegate | OnTimedOut | ||
| FApplyRootMotionMoveToForceDelegate | OnTimedOutAndDestinationReached | ||
| TObjectPtr< UCurveVector > | PathOffsetCurve | ||
| uint8 | PreviousCustomMovementMode | ||
| EMovementMode | PreviousMovementMode | ||
| FVector | StartLocation | ||
| FVector | TargetLocation |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UAbilityTask_ApplyRootMotionMoveToForce * | ApplyRootMotionMoveToForce
(
UGameplayAbility* OwningAbility, |
Apply force to character's movement | |
| void |
Overridden from UAbilityTask_ApplyRootMotion_Base
| Type | Name | Description | |
|---|---|---|---|
| void |