#Calculate Pitch & Yaw from obj1 to obj2
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
const pitch = Math.atan2(dY, Math.sqrt(dX * dX + dZ * dZ));
You’re “const pitch” was invalidate
You didn’t validate the const
Just read my code
And put it into yours
It should be fixed
You didn’t validate the code
I just said it, you didn’t validate the “const pitch” correctly