I'm still figuring out this whole thing, but as far as I can tell you can get a vector describing the direction that any Object3D (like a camera) is facing by calling
Matrix3DUtils.getForward(object.transform); That gives you the camera direction, you'll then need to transform that again with the difference between the camera direction and the light direction. There may be an easier way. On May 12, 10:08 pm, Aneesh Chopra <[email protected]> wrote: > Hello Everyone, > > I have a Sphere, a DirectionalLight3D and hoverCamera3D > > DirectionalLight3D initial direction is set as: > myDLight.direction = new Vector3D(-1500,-600,-1000); > > on arrow keys, I am moving hoverCamera3d Using panAngle & tiltAngle > properties. > > Problem is light does not move with camera movement and > my requirement is to have light dropping from same direction no matter > of camera position. > > Please suggest how should I can sync Light direction with camera > movement using panAngle and tiltAngle > > Thanks
