Hi, i want to determine if two Vectors from a Wall (facing the same direction) have an Obtuse angle or acute Angle to each other.
The Problem is doing the Dot Product returns the same Number. Reffering to the Graphic.
Is there another Approach for getting the correct angle between them? It would also help just to get an indicator if they are Obtuse or acute angle without getting the exact Angle between.
Here’s an example of that implementation above I’m actively using (bottom series of dot product then ACOS nodes are what you want for just this question):
As for that top line, it shows an approach for getting the “sign” of the result as a boolean albeit hardcoded to only consider the XY plane currently (ie, the “Vector Up” node makes the boolean true or false depending on whether the angle is supposedly “left” and “right” on the xy plane). As extra context, that upper dot product direction is hardcoded at the moment as I currently only care about the sign of the angle for horizontal direction blendspaces (eg, play dodge left vs dodge right vs dodge back vs dodge forward anim)
On a final note, this shouldn’t be the only way to do it but I can’t recall why I’m not using inverse tangent instead so take this all with a grain of salt:
i just found a solution for my purpose. i make a dot propduct from two direciton vectors (red in Graphic) if they are the same direcion it is an obtuse Angle, if not it is negative. Maybe it will help someone, or atleast you understand what i tried to achive :D. Thank you for your help anyway, highly appreciate it.