lookingAtTarget returns the position of the object the camera looks at On Wed, Oct 13, 2010 at 2:23 PM, jonny <[email protected]> wrote:
> Thanks for the quick reply Michael. Most appreciated. > > Im not sure a TargetCamera3D would work for me as I need to be able to > roam the world freely and not lookAt a specific object. > > With the second option you mentioned "Putting the lookAt into an > enterFrame Callback" - What do you mean by this? > > I do have an enterframe callback setup and I want in every loop of the > callback to be able to get the lookAt value. Ideally I want to just do > trace(cam.lookAt()) or equivalent but I cannot find a way to do this. > Any ideas? > > Please excuse my ignorance, I am just beggining to get to grips with > Away3D. > > > On Oct 13, 1:02 pm, Michael Iv <[email protected]> wrote: > > The best is to switch to TargetCamera3D or put the LookAt into EnterFrame > > callback > > > > > > > > > > > > On Wed, Oct 13, 2010 at 1:53 PM, jonny <[email protected]> > wrote: > > > Hi, > > > > > I am using a Camera3D object in Away3D and have set an initial > > > position and an initial lookAt position. I then move around the world > > > using cam.moveForward() and cam.pan(). > > > > > What I need, is to be able to get the camera lookAt value at any > > > time. > > > > > I have been trying everything but cannot get a solution. > > > > > Is there a method I can call on the camera object to get its lookAt > > > value? > > > > > Many Thanks > > > > -- > > Michael Ivanov ,Programmer > > Neurotech Solutions Ltd. > > Flex|Air > |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp:// > www.meetup.com/GO3D-Games-Opensource-3D/ > > Tel:054-4962254 > > [email protected] > > [email protected] Hide quoted text - > > > > - Show quoted text - -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com http://blog.alladvanced.net http://www.meetup.com/GO3D-Games-Opensource-3D/ Tel:054-4962254 [email protected] [email protected]
