Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spot & Directional targets are redundant #5870
why do spot and directional lights have a particular object they point towards at all times, instead of use their own transform? It's strange that spot and directional lights use Object3D, yet their rotation is completely useless, and they opt instead to have an extra positioned object. If the goal was to make positioning / pointing the lights simpler, it didn't really work, since Object3D can already easily point towards a position using lookAt.
This is not truly an issue, but weird from an api standpoint, and makes adding a spotlight as something like a headlight extra annoying. Of course there are probably workarounds like adding the target to the light object but it just always seemed strange, and more complex than it could ever make something simpler.