UGameplayStatics::Blueprint_PredictProjectilePath_Advanced

Predict the arc of a virtual projectile affected by gravity with collision checks along the arc.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h

Include

#include "Kismet/GameplayStatics.h"

Source

/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp

Syntax

static bool Blueprint_PredictProjectilePath_Advanced
(
    const UObject * WorldContextObject,
    const FPredictProjectilePathParams & PredictParams,
    FPredictProjectilePathResult & PredictResult
)

Remarks

Predict the arc of a virtual projectile affected by gravity with collision checks along the arc. Returns true if it hit something.

Returns

True if hit something along the path (if tracing with collision).

Parameters

Parameter

Description

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).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss