mrdoob/three.js — Issue #635: How to keep lights linked with relative rotation?
Author: bingomanatee
Created: 2011-10-09 20:43:27+00:00
State: open

It seems that if you attach lights to the position of an object (say moon) and move that object by attaching it to a rotating framework (say, object3D == center of planet, rotating) then the light will not rotate with the object. The only way to move the light is to move the absolute coordinates of its position and that is tough to do when the object is part of a series of nested objects being moved by relationship with a series of parents, say, your typical puppet rig.

Is there an example of a light being attached to an object/point that is being manipulated by relative transformations, or alternately a way to get the absolute x/y position of an object that is being rotated within a series of relative child coordinates?