I am trying to get a distance to an actor in the world. The problem is that the value is always positive. If the player is getting closer to the actor I want the value to be positive but if the player has passed it I want the value to be negative. This should depend on the world rotation of the object. How to achieve this?
EDIT: Ignore the spelling error