2D-Light-of-Sight-Unity
2D-Light-of-Sight-Unity copied to clipboard
Rotation Problem
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?
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;