座標の取得にView#get3DCoords()を利用します。



//カメラと取得する座標の距離
var depth:Number = 1000;
 
var point:Point3D = view.camera.localToGlobal(view.get3DCoords(new Point(
  stage.stageWidth * .5,
  stage.stageHeight * .5),
  depth
));


depth:Number — depth of the point in a camera — Z-coordinate in camera's coordinate system

depthは、Point#polarの第一引数(len)といったところでしょうか。

前の記事
次の記事