Choose your operating system:
Windows
macOS
Linux
| UMovementComponent::HandleImpact()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include |
#include "GameFramework/MovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp |
virtual void HandleImpact
(
const FHitResult & Hit,
float TimeSlice,
const FVector & MoveDelta
)
Called for Blocking impact
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. |