Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UProjectileMovementComponent
Description
Handle case where projectile is sliding along a surface. Velocity will be parallel to the impact surface upon entry to this method.
| Name | HandleSliding |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h |
| Include Path | #include "GameFramework/ProjectileMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ProjectileMovementComponent.cpp |
virtual bool HandleSliding
(
FHitResult & Hit,
float & SubTickTimeRemaining
)
True if simulation of the projectile should continue, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InitialHit | Hit result of impact causing slide. May be modified by this function to reflect any subsequent movement. |
| SubTickTimeRemaining | Time remaining in the tick. This function may update this time with any reduction to the simulation time requested. |