- Home /
Question by
seth_slax · Dec 14, 2016 at 08:53 AM ·
camera-movementorbitquaternion.slerp
Camera orbit to specific point on object?
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?
Comment
Your answer
