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_ApplyRootMotionConstantForce
References
Module | GameplayAbilities |
Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_ApplyRootMotionConstantForce.h |
Include | #include "Abilities/Tasks/AbilityTask_ApplyRootMotionConstantForce.h" |
Syntax
UCLASS&40;&41;
class UAbilityTask_ApplyRootMotionConstantForce : public UAbilityTask_ApplyRootMotion_Base
Remarks
Applies force to character's movement
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | bEnableGravity | |
![]() ![]() ![]() |
bool | bIsAdditive | |
![]() ![]() ![]() |
float | Duration | |
![]() ![]() ![]() |
FApplyRootMotionConstantForceDelegate | OnFinish | |
![]() ![]() ![]() |
float | Strength | |
![]() ![]() ![]() |
TObjectPtr< UCurveFloat > | StrengthOverTime | Strength of the force over time Curve Y is 0 to 1 which is percent of full Strength parameter to apply Curve X is 0 to 1 normalized time if this force has a limited duration (Duration > 0), or is in units of seconds if this force has unlimited duration (Duration < 0) |
![]() ![]() ![]() |
FVector | WorldDirection |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UAbilityTask_ApplyRootMotionConstantForce
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
UAbilityTask_ApplyRootMotionConstantForce * | ApplyRootMotionConstantForce
(
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 |