UProjectileMovementComponent::HandleImpact

Applies bounce logic if enabled to affect velocity upon impact (using [ComputeBounceResult()](API\Runtime\Engine\GameFramework\UProjectileMovementComponent\ComputeBounceResult)), or stops the projectile if bounces are not enabled or velocity is below BounceVelocityStopSimulatingThreshold.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UMovementComponent::HandleImpact()

UProjectileMovementComponent::HandleImpact()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h

Include

#include "GameFramework/ProjectileMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/ProjectileMovementComponent.cpp

Syntax

virtual void HandleImpact
(
    const FHitResult & Hit,
    float TimeSlice,
    const FVector & MoveDelta
)

Remarks

Applies bounce logic if enabled to affect velocity upon impact (using ComputeBounceResult()), or stops the projectile if bounces are not enabled or velocity is below BounceVelocityStopSimulatingThreshold. Triggers applicable events (OnProjectileBounce).