- Home /
Question by
knuckles209cp · Sep 01, 2015 at 09:01 AM ·
camerajavascriptcamera-movementlocalrotation
Z Rotation with Limits does not function properly.
I am creating a camera shake script that can rotate the camera on its Z-Axis, With limits of 3.0, And -3.0.
The code does not execute properly for unknown reason, The problem occurring is the camera is over rotating and is over the said limits. I have done research, and have tried different solutions to this problem, Yet it is un avoided.
Guncamera.transform.localRotation.z = Random.Range(-3.0 , 3.0);
Comment
Your answer
Follow this Question
Related Questions
how to modify this code to place it inside a car and move it along the car. 0 Answers
Camera Control messing up.. 1 Answer
Camera Script Amalgamation == Camera Script Abomination, Im In Over My Head 0 Answers
[JS] Custom camera rotation resets on Var change? 0 Answers
How to change main camera and access to the other scripts?? 0 Answers