Math.atan2 working but weird behavior

Hello, so I am trying to rotate a character model using atan2 depending on the direction of the first character to the second character, and that is working but it’s being kina of weird take a look

My code

Couldnt you just reverse it with Negation?

I tried negating either the X or Z but it just reverses the effect

Swap difference.X and difference.Z (sorry edit)

1 Like

I did that but the characters shoulder is facing the other one not the front

edit: sorry i didnt see your edit, it worked THANKS SO MUCH!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.