This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rotates the camera around character's current position based on axis input. | |
// PS4 - Right Analog Stick | |
void updateCamRotation(Vector3 characterPosition) { | |
// Set speed of rotation | |
float rotationSpeed = 2; | |
// Obtain Axes input. | |
float rotateHorizontal = Input.GetAxis("RightStickX"); | |
float rotateVertical = Input.GetAxis("RightStickY"); |