Sphere Trace For Objects

Sphere Trace For Objects

Choose your operating system:

Windows

macOS

Linux

Sweeps a sphere along the given line and returns the first hit encountered. This only finds objects that are of a type specified by ObjectTypes.

Target is Kismet System Library

Sphere Trace For Objects
Start
X0
Y 0
Z 0
End
X0
Y 0
Z 0
Radius
Object Types
Trace Complex
Actors to Ignore
Draw Debug Type
None
Ignore Self
Trace Color
Trace Hit Color
Draw Time
Out Hit
Return Value

Inputs

In
Exec
Start
Vector

Start of line segment.

End
Vector

End of line segment.

Radius
Float (single-precision)

Radius of the sphere to sweep

Object Types
Array of EObjectTypeQuery Enums

Array of Object Types to trace

Trace Complex
Boolean

True to test against complex collision, false to test against simplified collision.

Actors to Ignore
Array of Actor Object References
Draw Debug Type
EDrawDebugTrace Enum
Ignore Self
Boolean
Trace Color
Linear Color Structure
Trace Hit Color
Linear Color Structure
Draw Time
Float (single-precision)

Outputs

Out
Exec
Out Hit
Hit Result Structure

Properties of the trace hit.

Return Value
Boolean

True if there was a hit, false otherwise.