unreal.PredictProjectilePathParams

class unreal.PredictProjectilePathParams(start_location: Vector = Ellipsis, launch_velocity: Vector = Ellipsis, trace_with_collision: bool = False, projectile_radius: float = 0.0, max_sim_time: float = 0.0, trace_with_channel: bool = False, trace_channel: CollisionChannel = Ellipsis, object_types: Array[ObjectTypeQuery] = [], actors_to_ignore: Array[Actor] = [], sim_frequency: float = 0.0, override_gravity_z: float = 0.0, draw_debug_type: DrawDebugTrace = Ellipsis, draw_debug_time: float = 0.0, trace_complex: bool = False)

Bases: StructBase

Input parameters to PredictProjectilePath functions.

C++ Source:

  • Module: Engine

  • File: GameplayStaticsTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • actors_to_ignore (Array[Actor]): [Read-Write] Actors to Ignore: Actors to ignore when tracing with collision.

  • draw_debug_time (float): [Read-Write] Draw Debug Time: Duration of debug lines (only relevant for DrawDebugType::Duration)

  • draw_debug_type (DrawDebugTrace): [Read-Write] Draw Debug Type: Debug drawing duration option.

  • launch_velocity (Vector): [Read-Write] Launch Velocity: Initial launch velocity at the start of the trace.

  • max_sim_time (float): [Read-Write] Max Sim Time: Maximum simulation time for the virtual projectile.

  • object_types (Array[ObjectTypeQuery]): [Read-Write] Object Types: Object type to use, if tracing with collision.

  • override_gravity_z (float): [Read-Write] Override Gravity Z: Optional override of Gravity (if 0, uses WorldGravityZ).

  • projectile_radius (float): [Read-Write] Projectile Radius: Projectile radius, used when tracing for collision. If <= 0, a line trace is used instead.

  • sim_frequency (float): [Read-Write] Sim Frequency: Determines size of each sub-step in the simulation (chopping up MaxSimTime). Recommended between 10 to 30 depending on desired quality versus performance.

  • start_location (Vector): [Read-Write] Start Location: Location of the start of the trace.

  • trace_channel (CollisionChannel): [Read-Write] Trace Channel: Trace channel to use, if tracing with collision.

  • trace_complex (bool): [Read-Write] Trace Complex: Trace against complex collision (triangles rather than simple primitives) if tracing with collision.

  • trace_with_channel (bool): [Read-Write] Trace with Channel: Whether or not to use TraceChannel, if tracing with collision.

  • trace_with_collision (bool): [Read-Write] Trace with Collision: Whether to trace along the path looking for blocking collision and stopping at the first hit.

property actors_to_ignore: Array[Actor]

[Read-Write] Actors to Ignore: Actors to ignore when tracing with collision.

Type:

(Array[Actor])

property draw_debug_time: float

[Read-Write] Draw Debug Time: Duration of debug lines (only relevant for DrawDebugType::Duration)

Type:

(float)

property draw_debug_type: DrawDebugTrace

[Read-Write] Draw Debug Type: Debug drawing duration option.

Type:

(DrawDebugTrace)

property launch_velocity: Vector

[Read-Write] Launch Velocity: Initial launch velocity at the start of the trace.

Type:

(Vector)

property max_sim_time: float

[Read-Write] Max Sim Time: Maximum simulation time for the virtual projectile.

Type:

(float)

property object_types: Array[ObjectTypeQuery]

[Read-Write] Object Types: Object type to use, if tracing with collision.

Type:

(Array[ObjectTypeQuery])

property override_gravity_z: float

[Read-Write] Override Gravity Z: Optional override of Gravity (if 0, uses WorldGravityZ).

Type:

(float)

property projectile_radius: float

[Read-Write] Projectile Radius: Projectile radius, used when tracing for collision. If <= 0, a line trace is used instead.

Type:

(float)

property sim_frequency: float

[Read-Write] Sim Frequency: Determines size of each sub-step in the simulation (chopping up MaxSimTime). Recommended between 10 to 30 depending on desired quality versus performance.

Type:

(float)

property start_location: Vector

[Read-Write] Start Location: Location of the start of the trace.

Type:

(Vector)

property trace_channel: CollisionChannel

[Read-Write] Trace Channel: Trace channel to use, if tracing with collision.

Type:

(CollisionChannel)

property trace_complex: bool

[Read-Write] Trace Complex: Trace against complex collision (triangles rather than simple primitives) if tracing with collision.

Type:

(bool)

property trace_with_channel: bool

[Read-Write] Trace with Channel: Whether or not to use TraceChannel, if tracing with collision.

Type:

(bool)

property trace_with_collision: bool

[Read-Write] Trace with Collision: Whether to trace along the path looking for blocking collision and stopping at the first hit.

Type:

(bool)