Hi, I am trying to get my player to rotate and look at the trigger (box) when entering the trigger.
- Player approaches trigger (just a box) and is e.g. 90 degrees forward from the player position.
- Player smooth rotates and positions itself to look at the trigger (rotates 90 degrees).
I have tried getting the triggers velocity and applying a smooth look at but it always looks at the triggers Z axis. This causes problems when re-entering the same trigger from another angle e.g. opposite side, as this causes the player to flip around e.g. 180 degrees?
Anyway im pretty much lost on what to do now. Hope this makes sense.
Any advice would be appreciated