Heyyo guys, im trying to make simple entity rotation towards other entity like lookAt function, but for some reason it is not faced towards the destination entity but in opposite direction, rotation comes along with d. entity position but its is somehow rotated in wrong direction.
Here is a code, i added a little smooth rotation effect but even simple lookAt line is having a wrong results, the same as with smooth rotation.
Here you can see what opposite direction was ment, they should watch me instead of blank space. Thanks for any help.
I also tried to make a little makeup in editor and set y rotation to 180, either tried to add 180 in code but neither of them works, as not only Y rotation is changing but also other x,z