Easy Directional Box is an extended UBoxComponent that returns Box Side data on Begin Overlap and End Overlap events.
It provides a simple way to handle direction checking with a single box collision volume instead of having to use multiple colliders in several directions.
Box Component with two new overlap events:
On Component Begin Overlap With Directional Data
On Component End Overlap With Directional Data
Box Side enum representing the 6 sides of the box component in order:
Front, Right, Top, Back, Left, Bottom
Built-In Visualizer for viewing world orientation of the box with customization settings
Using the Easy Directional Box is as simple as adding any other component.
On your actor, add a new component with the Add button. You may search for the Directional Box Component or scroll to Collision components and select it there to add it to your actor.
You can override the two new Overlap Events by adding them to your blueprint graph via the Events section of the component
Overlap Events return the EBoxDirection enum that corresponds to the side of the box that was entered or exited. This will always be in respect to the orientation of the component meaning the "Front" side will always be the world space forward vector of the component.
Easy Directional Box contains a built-in visualizer to assist with always viewing the correct orientation of the box component. There are several configuration settings exposed that can be used to further assist in visualization.
How far the visualization lines extend past the boundaries of the box
Normalized value for how far the lines start from the center of the box
Draw thickness of visualization lines
For questions or about Easy Directional Box or to report an issue please email help.avelion114@gmail.com