I got it to work like so:
The inward corners are just turns, the outwards are a tad more tricky:
- we fire up to 2 linetraces to the side (depending on the direction of movement) of the actor
- one from the back
- one a bit to the front
- if both traces fail, it’s time to turn