Open elisherer opened 1 month ago
I know the followLight setup wasn’t ideal 😅. It’s better to give ecctrl a ref and control the light to follow its position manually.
@ErdongChen-Andrew do you want a PR?
For the followLight? I don’t think it’s necessary, users can easily get the ecctrl position and have more flexibility to adjust the light themselves. I plan to remove this feature in a future version, but thanks for asking.
this code
assumes the directionalLight is at a specific level, Ecctrl might be lower in the components tree. Can we supply a ref somehow, through context maybe?