Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStaticsTypes.h |
| Include | #include "Kismet/GameplayStaticsTypes.h" |
Syntax
struct FPredictProjectilePathParams
Remarks
Input parameters to PredictProjectilePath functions.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< AActor > > | ActorsToIgnore | Actors to ignore when tracing with collision. | |
| bool | bTraceComplex | Trace against complex collision (triangles rather than simple primitives) if tracing with collision. | |
| bool | bTraceWithChannel | Whether or not to use TraceChannel, if tracing with collision. | |
| bool | bTraceWithCollision | Whether to trace along the path looking for blocking collision and stopping at the first hit. | |
| float | DrawDebugTime | Duration of debug lines (only relevant for DrawDebugType::Duration) | |
| TEnumAsByte< EDrawDebugTrace::Type > | DrawDebugType | Debug drawing duration option. | |
| FVector | LaunchVelocity | Initial launch velocity at the start of the trace. | |
| float | MaxSimTime | Maximum simulation time for the virtual projectile. | |
| TArray< TEnumAsByte< EObjectTypeQuery > > | ObjectTypes | Object type to use, if tracing with collision. | |
| float | OverrideGravityZ | Optional override of Gravity (if 0, uses WorldGravityZ). | |
| float | ProjectileRadius | Projectile radius, used when tracing for collision. If <= 0, a line trace is used instead. | |
| float | SimFrequency | Determines size of each sub-step in the simulation (chopping up MaxSimTime). Recommended between 10 to 30 depending on desired quality versus performance. | |
| FVector | StartLocation | Location of the start of the trace. | |
| TEnumAsByte< ECollisionChannel > | TraceChannel | Trace channel to use, if tracing with collision. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Empty constructor. You typically want to use another one that enforces thought about reasonable values for the most important parameters. | |||
FPredictProjectilePathParams
(
float InProjectileRadius, |
Constructor defaulting to no collision. | ||
FPredictProjectilePathParams
(
float InProjectileRadius, |
Constructor to use collision with an ObjectType. Additional types can be added to the array. TraceWithCollision is set to true automatically. | ||
FPredictProjectilePathParams
(
float InProjectileRadius, |
Constructor to use collision with a trace channel. TraceWithCollision is set to true automatically. |