- Home /
Camera Recoil without returning
Hey, i want to make recoil for guns, so that when you shoot, camera goes upwards few degrees and stays there, does not go down. This Script Demonstrates for few clicks what i want basically
if(Input.GetKeyDown("f")){ gameObject.transform.eulerAngles.z = gameObject.transform.eulerAngles.z + 2; }
but here is the problem, i want it on player, which has also Mouse Look Script to it, and when i click enough times, i cant look down, because Camera is rotated up, therefor minimum Y look variable of Camera Look is wrong. and also maximum Y is wrong. Any Solution to this problem?
Your answer
Follow this Question
Related Questions
Adapting camera movement to touch input 0 Answers
How to make the camera follow the player while still being able to be rotated? 1 Answer
Swipe angle and Rotation of camera to movement 1 Answer
LookAt and Follow different objects 0 Answers
I'm a bit new but when my camera rotates with the player model to look around it kind of jitters 0 Answers