var maxheight:Number =
Math.tan((PerspectiveLens(view.camera.lens).fieldOfView * 0.5) * Math.PI /
180) * distanceFromCamera * 2;
var maxWidth:Number = maxheight * (view.width / view.height);

remember distance from camera would be the distance to the face you looking
at. Not the objects center.

Reply via email to