#Could you show the solution?. I am
1 messages · Page 1 of 1 (latest)
I can assure you it isn't.. my first attempt at coding for reforger. Line 109 is the one of interest
https://pastebin.com/DG7mNBaz
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I think instead of calculating difference of euler angles you should do a dot product calculation of the looking direction and target direction.
If you normalize the vectors and compute the dot product then you can do a quick check of dot product < 0.9 or so and use that as the condition to break the lock