Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Predict the arc of a virtual projectile affected by gravity with collision checks along the arc. Returns true if it hit something.
| Name | Blueprint_PredictProjectilePath_Advanced |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="Game", DisplayName="Predict Projectile Path (Advanced)",
Meta=(WorldContext="WorldContextObject"))
static bool Blueprint_PredictProjectilePath_Advanced
(
const UObject * WorldContextObject,
const FPredictProjectilePathParams & PredictParams,
FPredictProjectilePathResult & PredictResult
)
True if hit something along the path (if tracing with collision).
Parameters
| Name | Remarks |
|---|---|
| PredictParams | Input params to the trace (start location, velocity, time to simulate, etc). |
| PredictResult | Output result of the trace (Hit result, array of location/velocity/times for each trace step, etc). |