2D-Light-of-Sight-Unity icon indicating copy to clipboard operation
2D-Light-of-Sight-Unity copied to clipboard

Rotation Problem

Open mindryu opened this issue 9 years ago • 1 comments

I think this plugin seems the best among the Line of sight library.

But, I found one problem. Dynamic light is not sync with its parent or it self rotation. Temporary I rotate light by its cone angle.

I want to fix it. but I dont know where to start. Where do I have to fix it?

mindryu avatar Jan 05 '16 14:01 mindryu

Temporary I add 2 lines at Update function in LOSRadialLight class. Its not perfect but it works well.

transform.rotation = Quaternion.Euler(0, 0, 0); faceAngle = -transform.localEulerAngles.z;

mindryu avatar Jan 05 '16 15:01 mindryu