It isint working well, it is working somehow.
I searched through the internet and never found the formula or function what works fine.
As you can tell that my function can not work with the pitch.
Changing the pitch will change the x and y coords but it only changes z.
I dont even know how right is my x and y formula.
Can someone give me a working function or formula?
Thanks!