From the course: Unity Medical Visualization: 03 Deployment and Usability

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Creating a zoom function

Creating a zoom function

- [Instructor] In the preceding movie, we configured the Cinemachine camera here to rotate and orbit around this heart object and the really great thing about this CinemachineFreeLook component is that by default, straight out of the box, it gives you controls to control the camera during runtime. So for example, I press play on the toolbar, and just by moving the mouse left or right, up or down, I can orbit the camera around the heart. So horizontal motion, left and right on the mouse, x-axis, allows me to continually rotate around the heart and continuous motion on the y-axis allow me to orbit or to track the camera up and down to get different views of the heart. Now, that's great. Dead simple. We didn't have to do any coding at all to get custom controls. These settings are, by the way, are configurable from the CinemachineFreeLook component. If you move to the Inspector and take a look at the…

Contents