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_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&40;&41;
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 |
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 |