Yup quaternations are tricky.
How i solved quaternations:
- i asked ChatGPT to make function that properly orients my spaceship around planet
- ofc, GPT messed it all, however template for such functions together with quaternations formula was correct
- what GPT messed up is what formula goes to which rotation result.
I cannot find that function atm. maybe in some time.