Skip to content

Box Ring Trace

Box Ring Trace

Box Ring Trace is a combination of Unreal's default Box Trace and the technique used in Ring Trace of this plugin. This results in Ring

  • Features:
    • Useful for abilities like traps and walls.
    • Defined using two FVector HalfExtents
    • Can be aligned to the caster’s facing or world axes.

Usage example

A boss ability that casts a lava floor along the edge of a square boss arena.

Implementing an Example of Box Ring Trace

Prequisits

This example assumes that you are using the ThirdPersonTemplate project or understand where your current playable character class is.

Find the function.

In your playable Character's event graph, right click in some empty space and look for Indectis or Box Ring Trace Single. You should see a bunch of different options come up as a result, pick Box Ring Trace Single for Objects.

Box Ring Step 1

Configuring the Box Ring trace.

Every parameter on the function has a tooltip that describes what it does but the technical details are listed on this same page under Box Ring Trace for Objects. This example will use parameters as shown in the image below:

Box Ring Step 2

Using debug input.

Right-click again in the event graph and look for Debug Input it doesn't matter which one you pick, we can assign the key to it through the details panel. Pick any key you want, this example uses Q for it.

Box Ring Step 3

Connect the Debug Input with the Box Ring Trace.

Connect the Pressed execution pin from the Debug Input to the Box Ring Trace Single for Objects that was configured in step two.

Box Ring Step 4

Play in Editor to test.

Place a single third person character in your level then play in editor and press Q while facing it to see the Box Ring Trace work with it's debug shape.

Box Ring Trace Single by Channel

A Box Ring trace that uses a trace channel for it's sweep.

Box Ring Trace Single by Channel

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
Trace ChannelTrace channel to use for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Box Ring Trace Single for Objectypes

A Box Ring trace that uses an array of object types for it's sweep.

Box Ring Trace Single for Objects

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
ObjectTypesArray of object types for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Box Ring Trace Single by Profile

A Box Ring trace that uses a collison profile for it's sweep.

Box Ring Trace Single by Profile

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
ProfileCollision profile to use for sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Box Ring Trace Multi by Channel

A Box Ring trace that uses a trace channel for it's sweep and returns an array of hits.

Box Ring Trace Multi by Channel

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
Trace ChannelTrace channl to use for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Box Ring Trace Multi for ObjectTypes

A Box Ring trace that uses an array of object types for it's sweep and returns an array of hits.

Box Ring Trace Multi for Objects

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
ObjectTypesArray of object types for the sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen

Box Ring Trace Multi by Profile

A Box Ring trace that uses a collision profile for it's sweep and returns an array of hits.

Box Ring Trace Multi by Profile

Technical Details

ParameterDescription
OriginLocation at the center of the ring
Outer extentsHalf Extents for the outer box
Inner extentsHalf Extents for the inner box
OrientationOrientation of the box ring
ProfileCollision profile to use for sweep
Trace ComplexShould trace against complex collision
Actors to IgnoreAn array of actors to ignore
Ignore SelfShould ignore this actor
Draw Debug TypeDebug draw duration type
Trace ColorDebug color of the trace
Trace Hit ColorDebug color of valid hits
DrawtimeDuration for the debug draw on screen