Download

Planet 3d rotation based movement direction to local rotation.

Hi I have a problem to solve, I move my pawns in this way:
Center point that rotates in all 3 axis.
Offset arrow that is has a Relative location of X(Radius of planet) Y0 Z0.
Mesh that is connected to this offset arrow. has Relative position of X0 Y0 Z0 Location of X0 y0z0
I can move(Rotate) my pawn fine with this function but I cannot figure out how to give the right Z (Relative movement direction rotation) to the pawn mesh

Thanks in advance!