Read text from both sides/reverse rotation

Hi all!

I am desperately stuck on this problem. I have a text object that faces the player upon spawning and the basic functionality I am having trouble with is that I want the player to read the text from both sides. To do this I need the text object to turn 180 degrees once the player gets behind it, this is not the hard part however. I am having problems detecting when the player is behind the text, so that it may rotate. I need this to happen constantly so that if the player walks through the text multiple times, it is always facing the side he is on.

I have attempted this by subtraction of the players position and a vector3.back attached to the text object, but I have had no luck.

Thank you in advanced,
Alex V

Easiest thing to do would be to convert the player’s position to the sign’s local space, and compare the Z position to zero. It’d look like this:

void Update() {
Vector3 localPoint = transform.position.InverseTransformPoint(playerTransform.position);
if (localPoint.z < 0f) transform.Rotate(0f,180f,0f);
}