I'm looking for the math that give me the direction in which i'm crossing a body. I'm out of ideas, I know it must be very simplistic application of trigonometry but I tried various things without success.. Not sure what is the best approach.
Here the details:
So I have a body that is rotated at a given angle and I need to find out if i'm entering the body from it's back or from it's front. The trajectory in this use-case is defined by the mouse position (on move), therefore I can draw a line from the previous Point and the current Point.
Hope someone can help me with this:) & Thanks very much in advance.