Https://forum.babylonjs.com/t/setdirectiontotarget/42648/10?u=rainerheintzmann

I think there is a bug with the update behaviour of the ProjectionTextureMatrix update of a Spotlight, when assigning a parent.
See this post:

Closed as dupplicate of Https://forum.babylonjs.com/t/setdirectiontotarget/42648/10