The plane triggers the Hello console output, I want the trigger to happen only if the player is facing the way where the mesh is seen, so just one way trigger.
I read about get forward vector, but don’t know how to implement it.
1 Like
This is why a line trace is so much better than an overlap. Because you can’t do a linetrace with your butt
I think dot product between the door forward vector and the player forward vector, gimme a min…
This
If it’s nearly 0, the player is facing the same way as the door. If it’s nearly 180, facing the opposite way.
Notice the door has the X facing this way, in my example
1 Like
Little addition, Im using the player camera Manager instead of the Player Character Forward Actor. I don’t know why but the Player Character forward actor isn’t updating, with Camera Manager it works!
1 Like
Ah yes, depends how the player movement is coded.
1 Like