UMovementComponent::HandleImpact

Override Hierarchy

Syntax

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

Remarks

Called for Blocking impact

Parameters

Parameter

Description

Hit

Describes the collision.

TimeSlice

Time period for the simulation that produced this hit. Useful for putting Hit.Time in context. Can be zero in certain situations where it's not appropriate, be sure to handle that.

MoveDelta

Attempted move that resulted in the hit.

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/MovementComponent.h

Source

Runtime/Engine/Private/Components/MovementComponent.cpp