How do I change the rotation matrix of the camera by the direction of the vector?

Didn’t understand what do you want to achieve

I want to adjust the position of the camera towards the cursor

Try this

  • The test found that it could not scale towards the scene location of the cursor

I didn’t understand what you mean and what does scaling have to do with it if you want to rotate in the direction of the cursor