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?
Distance is always positive because youโre describing the magnitude of something. Youโd need distance and some kind of angle reference, to determine if it should be positive or negative.