Hey guys.
I'm using the MouseOrbitImproved script to orbit around an object in my project, and that's all working perfectly fine.
http://wiki.unity3d.com/index.php?title=MouseOrbitImproved
The objects I'm orbiting around have several smaller objects parented to them, and I was wondering if it would be possible to, say, if a button was pressed, quickly rotate the camera to be aligned with one of the sub-objects? I know spherical rotation can easily be achieved with Quaternion.Slerp, however I have no idea how I'd go about getting the Quaternion to Slerp to.
Does anyone have any suggestions?
↧