Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Z Rotation with Limits does not function properly.

$
0
0
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);

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>