Hi everyone !
I am making a game with a friend (mazelpomme):
The player controls an airplane.
It rotates around a sphere and missiles try to touch it, so missiles align themself with the player.
To align missiles on player, we worked with Cross product, Dot product with the down missile's vector and the vector "missile to sphere's center" (@see uploaded images)
currently, our code is:
missile.lookAt(Player.getInstance().getAbsolutePosition());
var missileto