PredictProjectilePathResult

Overview

PredictProjectilePathResult is a data type that contains the result data of projectile path prediction.

Constructors

Properties

FoundHit

boolean

Indicates whether a collision occurred during path prediction.

Code Samples

HitDistance

number

The distance from the launch start position to the collision point.

Code Samples

HitInstance

Instance

The instance that was hit. Returns nil if no collision occurred.

Code Samples

HitNormal

Vector3

The normal vector of the collision surface.

Code Samples

HitPosition

Vector3

The world-space coordinates of the collision point.

Code Samples

LastTraceDestination

PredictProjectilePathPointData

The data of the last traced path point.

Code Samples

Location

Vector3

The last position reached by the projectile.

Code Samples

PathDataArray

Array

An array containing PredictProjectilePathPointData for each point along the predicted path.

Code Samples

Time

number

The time elapsed (in seconds) from launch to the last path point.

Code Samples

Methods

Events

Last updated