org.papervision3d.core.proto.DisplayObject3D
+--org.papervision3d.core.proto.CameraObject3D
+--org.papervision3d.cameras.Camera3D
The Camera3D class lets you specify how to present a scene from a particular point of view.
Camera3Dクラスは特定の景観からの場面を提示する方法を指定させることができます。
cos, DEFAULT_FOCUS, DEFAULT_Z, DEFAULT_ZOOM, focus, sin, sort, zoom
container, DEGREES, extra, PERCENT, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, scene, screenZ, visible, x, y, z, ZERO
public function Camera3D(target:DisplayObject3D, zoom:Number, focus:Number, initObject:Object)
The Camera3D constructor lets you set up the view of a scene that will be rendered.
Its position can be specified in the initObject.
The default value of z is DEFAULT_Z.
Camera3Dコンストラクタはレンダリングされる場面の視点をセットアップします。
initObjectで位置を指定することができます。
zのデフォルト値はDEFAULT_Zです。
target |
[optional] - A DisplayObject3D object that specifies the current position of the camera's target in 3D space.
[任意] 3Dスペースでカメラの目標の現在の位置を指定するDisplayObject3Dオブジェクト。 If null, rotationX and rotationY must be manually adjusted when aiming the camera, while rotationZ (camera roll) is always manual. The default value is DisplayObject3D.ZERO, the origin of the 3D coordinate system. カメラを向けるとき、nullであるなら、手動でrotationXとrotationYを調整しなければなりません。 rotationZ(カメラロール)はいつも手動です。 デフォルト値はDisplayObject3D.ZERO、3D座標系の起源です。 |
zoom |
[optional] - This value specifies the scale at which the 3D objects are rendered. Higher values magnify the scene, compressing distance. Use it in conjunction with focus. The default value is 2. この値は3Dオブジェクトがレンダリングされるスケールを指定します。 距離を圧縮して、より高い値は場面を拡大します。 焦点に関連してそれを使用してください。 デフォルト値は2です。 |
focus |
[optional] - This value is a positive number representing the distance of the observer from the front clipping plane, which is the closest any object can be to the camera. Use it in conjunction with zoom. The default value is 100. この値は前のクリッピングパネルから観測者(カメラの位置)の距離を表す正の数です。 (その正の数はカメラにはいくつかのオブジェクトが最も近くに、あることができるということです)。 ズームに関連してfocusを使用してください。 デフォルト値は100です。 |
initObject |
[optional] - An object that contains user defined properties with which to populate the newly created DisplayObject3D. 新たに作成されたDisplayObject3Dクラスに居住する特性を持ったユーザ定義属性が含まれるオブジェクト
It includes x, y, z, rotationX, rotationY, rotationZ, scaleX, scaleY scaleZ and a user defined data object. x、y、z、rotationX、rotationY、rotationZ、scaleX、scaleY scaleZ、およびユーザの定義されたデータ・オブジェクトを含んでいます。 If data is not an object, it is ignored. All properties of the data field are copied into the new instance. The properties specified with data are publicly available. データがオブジェクトでないなら、それは無視されます。 データ・フィールドのすべての特性が新しいインスタンスにコピーされます。 データで指定された特性は公的に利用可能です。
|
public target:DisplayObject3Dpublic function transform()
Transform() coordinates from the world reference frame to the observer's one.
カメラ(観測者)から参照座標までの座標を変える
public function hover(type:Number, mouseX:Number, mouseY:Number)
Hovers the camera around as the user moves the mouse, without changing the distance to the target. This greatly enhances the 3D illusion.
舞っている、目標への距離を変えないで、ユーザが動かしたマウスにそって動かす。 これは3D幻想を大いに強めます。
type | Type of movement. 動きのタイプ 0か1を指定 |
mouseX | Indicates the x coordinate of the mouse position in relation to the container MovieClip. MovieClipの入れ物と関連してマウス位置のx座標を示します。 |
mouseY | Indicates the y coordinate of the mouse position in relation to the container MovieClip. MovieClipの入れ物と関連してマウス位置のx座標を示します。 |