22 void ApplyKnockback(
const FVector& Direction,
const FKnockbackData& KnockbackData);
23 void FinishKnockback();
26 virtual void BeginPlay()
override;
27 virtual void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
30 float GetKnockbackApplyTimeRatio(
bool bIgnoreKnockbackResistance)
const;
31 void ApplyKnockbackVelocity()
const;
35 TObjectPtr<ACharacter> OwnerCharacter =
nullptr;
38 TObjectPtr<UCharacterMovementComponent> MovementComponent =
nullptr;
41 FVector KnockbackDirection = FVector::ZeroVector;
42 float KnockbackStrength = 0.0f;
43 float RemainingTime = 0.0f;