In v4.x what would be a good replacement for camera.screen(object); 

Software: Away3D 4.x

Ludovic, Jr. Member
Posted: 17 May 2014 12:13 AM   Total Posts: 31

Hi!
In v3.6 to obtain the 2D x,y coordinate of an object projection onto the screen represented by the camera you could use:

camera.screen(object); 

The .screen property is gone unfortunately, is there another simple alternative?

Thanks,
Ludo

   

John Brookes, Moderator
Posted: 19 May 2014 05:46 PM   Total Posts: 732   [ # 1 ]

view.project(yourObject.scenePosition)

   

Ludovic, Jr. Member
Posted: 19 May 2014 10:56 PM   Total Posts: 31   [ # 2 ]

Awesome that worked right away with no further changes.
Thanks grin

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X