Hello friends, I'm migrating some PV3D projects to Away3D LITE,
but I couldn't find a way to get the 2D coordinates of an Object.

On Papervision I was using the function bellow:

function getObj2DCords ( obj, cam,  offsetX = 0, offsetY = 0 )
{
        var view = obj.view;
        var persp = (cam.focus * cam.zoom) / (cam.focus + view.n34);
        return {x:(view.n14 * persp) + offsetX, y:(view.n24 * persp) +
offsetY };

}

I think there is a better way on Away3D... Is that possible to get the
same on LITE?

Thanks in advance!

Reply via email to