を使用して Away3D の投影中心を変更する方法perspectiveLens
。
以下を使用して、標準のフラッシュ 3d ライブラリで実行できることを私は知っています。
root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);
しかし、Away3D クラスを調べると、そのような関数は存在しません。
away3D は別の方法を使用してこれを達成しますか?
を使用して Away3D の投影中心を変更する方法perspectiveLens
。
以下を使用して、標準のフラッシュ 3d ライブラリで実行できることを私は知っています。
root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);
しかし、Away3D クラスを調べると、そのような関数は存在しません。
away3D は別の方法を使用してこれを達成しますか?
Object3d またはそれから派生したものには「pivotPoint」があります。
しかし、通常はカメラを動かしたいだけです。
camera.z = -1000;
camera.x = 500;
camera.y = 500;
// after moving the camera you'll want to re-orient towards your scene.
//for instance to look at the origin:
camera.lookAt( new Vector3D(0,0,0));
編集: オブジェクトを回転させたいだけの場合は、pan()、pitch()、roll() を試してください。