MultiSphereTraceForObjects

MultiSphereTraceForObjects

Windows
MacOS
Linux

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

Target is Kismet System Library

MultiSphereTraceForObjects
Start
X0
Y 0
Z 0
End
X0
Y 0
Z 0
Radius
0.0
Object Types
Trace Complex
Actors to Ignore
Draw Debug Type
None
Ignore Self
Trace Color
Trace Hit Color
Draw Time
5.000000
Out Hits
Return Value

Inputs

In
Exec
Start
Vector

Start of line segment.

End
Vector

End of line segment.

Radius
Float

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

Outputs

Out
Exec
Out Hits
Array of Hit Result Structures

A list of hits, sorted along the trace from start to finish. The blocking hit will be the last hit, if there was one.

Return Value
Boolean

True if there was a hit, false otherwise.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback