Tuesday 19 April 2016

Camera Controls

The idea with the camera controls would be that the main camera would have a target to track and the camera would be able to rotate around the position of said target should the player click and hold the Right Mouse Button (RMB). It would do this with a line of code transform.RotateAround with the position being set as the target. To allow this action to be smooth, rather than allow the camera to jump between positions, I multiplied the speed of the camera rotation by Time.DeltaTime.


No comments:

Post a Comment