Get penetration value of a box and direction

Hello,

I made an actor blueprint. Inside, I have a box, used as a collider to use Event Actor Begin Overlap function. What I want, is to know how much the character is inside this box, if it is possible. I have found nothing online related to this, but perhaps my search terms are not good.

The ultimate goal is to move smoothly my camera following the character in angles, like, for example, in Sonic Generations. So I would like to yaw it depending on how much the character is inside. Also, I would like to know if I can know in which direction of the box the character has entered (for the possibility of doing my whole action backwards).

If you have any other solution for what I’m searching, I’m listening! :slight_smile: Thanks!