[lite] Lights can't participate in the SceneNode graph

I think this is a bug, but maybe the design has changed and not all doc references are up to date yet…

Lights have parent and children, and various places in the lite codebase seem to imply that they should implement SceneNode, but they don’t. If you cast a light to any and use setParent, it immediately crashes because lights are missing some of the necessary accessors, like rotationQuaternion.

Right now I’m updating transforms manually in beforerender, but in the game I’m porting there is a spotlight attached to the bottom of a drone which is tilting as it moves, so being able to parent directly would greatly simplify things.

Yes, setParent() accepts/documented parentable Lights but internally assumes SceneNode TRS.
Seems like mismatch.

Yup it is on me! Let me fix that

fix(light): support SceneNode parenting by deltakosh · Pull Request #718 · BabylonJS/Babylon-Lite