Question by
kasiula03 · Jan 10, 2019 at 09:17 PM ·
lightingrotate object
Cannot rotate from 0 to 360 degree
Hi everyone. I am trying to create day night system based on Directional Light. This light is a child's GameObject contains my day night controll script. I want to rotate this light one the x axis from 0 to 360 degree, I tried a few ways to rotate this object from basic transform.Rotate(1,0,0) to use Lerp and the Quaternion.Euler function. Unfortunately in every case, when rotation x exceeds 180, in the inspector rotation change to negative value -180 and then goes to zero. Why is it actually happen?
Comment
Your answer
Follow this Question
Related Questions
LOD batching 0 Answers
Light through hole create with depthmask 0 Answers
Lighting & Baking 1 Answer
Need Ideas for optimizing lighting for a mobile game 0 Answers
Script to make specific parts of my object bright ? 0 Answers