Using a directional vector to orient a sphere?
I'm trying to make an artificial horizon/attitude indicator using some data from another game (KSP). This involves rotating a sphere around based on a directional vector from the other game.
The x, y and z components of the vector range between -1 and 1. My aim is to "translate" this in to a orientation/rotation of a sphere so that the sphere "look" in the same direction.
The problem is, I'm a complete doofus when it comes to quaternions and rotation in 3D space in general, that is why I am here. I have tried to use the yaw, pitch and roll degrees from the other game to rotate the sphere with euler angles, but run in to a strange problem where the sphere will "flip" when it reaches the top of either hemisphere. (video of "flipping" if interested: https://my.mixtape.moe/ynaabg.mp4).
Any help and/or guidance is much appreciated.
-FP