the object is not completely in the trigger and is on the edge.

Unreal engine 5
how to understand that an object is not completely in the trigger?.

I need to understand that the object is not completely in the trigger and is on the edge. this information must be obtained before the object enters the trigger completely, or before it exits the trigger completely.


This is the default when entering the trigger. If you want to catch the object partially exiting, you’ll need to measure its location on tick.

Isn’t it possible to check with a line trace when entering a trigger to see if there is a part of the actor still outside of the trigger box? and then maybe every time the actor moves, it checks again until its 100% inside or outside of the trigger box?

This may help, but I have a lot of problems with the implementation, for example. To make the beam react to the trigger box

Why would the beam need to interact with the trigger box?

how to implement it??? :smile:

I am thinking something like this:

You basically place the line trace right outside of the trigger box. In this case the line trace will only return when an object is interacting with the beam, and the beam won’t interact with the box :slight_smile:

1 Like

:smiley:

Hi! I just want to know if it worked? :smiling_face:

Yes, THK

video preview https://www.youtube.com/watch?v=p7o-03TKZOM