I'm curious if it is possible to change the rotation center point from the screen center to the raycast hitpoint. So whenever the user clicks somewhere, the camera orbits around the cursor hit world position instead of the screen center.

I've stumbled across the ScreenDeph conversion type. But I'm not too sure how to use it, since the screen center position seems to be utilized for a lot of calculations internally.

Thanks

    TS-Did Hi Toby, I replied to your email.
    Have you tried the RotateAround() method? there is a demo scene that uses it called "custom controls" I think.
    From there you can easily adapt it to rotate under the mouse when the user clicks.

      Write a Reply...