_view.camera.lookAt in Away4.0

Software: Away3D 4.x

Manuel L., Member
Posted: 03 April 2012 08:52 AM   Total Posts: 99

Hey guys, i`m searchin for the lookAt option of the camera in latest Away 4.0. Its lost ... what can i do to get it back? ^^

thank you very much!

   

ASWC, Member
Posted: 03 April 2012 09:00 AM   Total Posts: 76   [ # 1 ]

it’s not lost, it’s still there:

camera.lookAt() 
   

Manuel L., Member
Posted: 03 April 2012 09:06 AM   Total Posts: 99   [ # 2 ]

oh thank you, you are right ... its really stil there, but it doesnt work.
i do

onclick .... lookat(target.position) ... but nothing happens ... when i trace target.position it is traced correctly ... the lookAt seems not to work hmmm

   

ASWC, Member
Posted: 03 April 2012 09:15 AM   Total Posts: 76   [ # 3 ]

you sure you are calling render() on the view?

   

Manuel L., Member
Posted: 03 April 2012 09:17 AM   Total Posts: 99   [ # 4 ]

yes :-(

   

ASWC, Member
Posted: 03 April 2012 09:31 AM   Total Posts: 76   [ # 5 ]

you should use target.scenePosition

   

Manuel L., Member
Posted: 03 April 2012 10:31 AM   Total Posts: 99   [ # 6 ]

thank you i had hope when i read your post but scenePosition doesnt have any effect too

   

Manuel L., Member
Posted: 03 April 2012 10:40 AM   Total Posts: 99   [ # 7 ]

thank you very very much ... got it to work ... my onEnterFrame function was steady overwriting this value ... im very sorry ... it was my fault ^^

thank you!

   
   
‹‹ Flex project

X

Away3D Forum

Member Login

Username

Password

Remember_me



X