- Home /
Question by
smirlianos · Sep 03, 2016 at 08:19 PM ·
cameracharactercontrollerrotatecamera rotate
Rotate Character Controller Camera
I have this script that is supposed to mimic the recoil of a gun by rotating the main camera up. The problem is that the camera rotates but then immediately moves back to its position. Any help?
var mainCam : Transform;
if(Input.GetMouseButtonDown(0)) {
mainCam.Rotate(3,0,0);
}
Comment