I have a problem. I have created an object that will move in X, Y, Z axes in changing directions. I want to use the Quaternionf class as my tool. Knowing the X, Y, Z coordinates of the object and the coordinates of the target point, I want to set Quaternionf towards this point (from the position of the object, of course). The direction from the object point should always be towards the target point. I am attaching pictures showing what I mean.
As you can see, the direction of the object is always facing the target. I will be grateful for your help!