G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FPredictProjectilePathParams Struct Reference

Input parameters to PredictProjectilePath functions. More...

Public Member Functions

Functions
FPredictProjectilePathParams & opAssign (FPredictProjectilePathParams Other)

Public Attributes

PredictProjectilePathParams
TArray< EObjectTypeQuery > ObjectTypes
 Object type to use, if tracing with collision.
FVector LaunchVelocity
 Initial launch velocity at the start of the trace.
bool bTraceWithCollision
 Whether to trace along the path looking for blocking collision and stopping at the first hit.
float32 ProjectileRadius
 Projectile radius, used when tracing for collision. If <= 0, a line trace is used instead.
float32 MaxSimTime
 Maximum simulation time for the virtual projectile.
bool bTraceWithChannel
 Whether or not to use TraceChannel, if tracing with collision.
ECollisionChannel TraceChannel
 Trace channel to use, if tracing with collision.
FVector StartLocation
 Location of the start of the trace.
TArray< TObjectPtr< AActor > > ActorsToIgnore
 Actors to ignore when tracing with collision.
float32 SimFrequency
 Determines size of each sub-step in the simulation (chopping up MaxSimTime). Recommended between 10 to 30 depending on desired quality versus performance.
float32 OverrideGravityZ
 Optional override of Gravity (if 0, uses WorldGravityZ).
EDrawDebugTrace DrawDebugType
 Debug drawing duration option.
float32 DrawDebugTime
 Duration of debug lines (only relevant for DrawDebugType::Duration).
bool bTraceComplex
 Trace against complex collision (triangles rather than simple primitives) if tracing with collision.

Detailed Description

Input parameters to PredictProjectilePath functions.

Member Function Documentation

◆ opAssign()

Member Data Documentation

◆ ActorsToIgnore

TArray<TObjectPtr<AActor> > ActorsToIgnore

Actors to ignore when tracing with collision.

◆ bTraceComplex

bool bTraceComplex

Trace against complex collision (triangles rather than simple primitives) if tracing with collision.

◆ bTraceWithChannel

bool bTraceWithChannel

Whether or not to use TraceChannel, if tracing with collision.

◆ bTraceWithCollision

bool bTraceWithCollision

Whether to trace along the path looking for blocking collision and stopping at the first hit.

◆ DrawDebugTime

float32 DrawDebugTime

Duration of debug lines (only relevant for DrawDebugType::Duration).

◆ DrawDebugType

EDrawDebugTrace DrawDebugType

Debug drawing duration option.

◆ LaunchVelocity

FVector LaunchVelocity

Initial launch velocity at the start of the trace.

◆ MaxSimTime

float32 MaxSimTime

Maximum simulation time for the virtual projectile.

◆ ObjectTypes

TArray<EObjectTypeQuery> ObjectTypes

Object type to use, if tracing with collision.

◆ OverrideGravityZ

float32 OverrideGravityZ

Optional override of Gravity (if 0, uses WorldGravityZ).

◆ ProjectileRadius

float32 ProjectileRadius

Projectile radius, used when tracing for collision. If <= 0, a line trace is used instead.

◆ SimFrequency

float32 SimFrequency

Determines size of each sub-step in the simulation (chopping up MaxSimTime). Recommended between 10 to 30 depending on desired quality versus performance.

◆ StartLocation

FVector StartLocation

Location of the start of the trace.

◆ TraceChannel

ECollisionChannel TraceChannel

Trace channel to use, if tracing with collision.