| Package | away3dlite.cameras |
| Class | public class Camera3D |
| Inheritance | Camera3D Object3D flash.display.Sprite |
| Subclasses | TargetCamera3D |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | animationLibrary : AnimationLibrary
Used in the loaders to store all parsed animation data contained in the model.
| Object3D | |
| focus : Number
Defines the distance from the focal point of the camera to the viewing plane.
| Camera3D | ||
![]() | geometryLibrary : GeometryLibrary
Used in loaders to store all parsed geometry data contained in the model.
| Object3D | |
| invSceneMatrix3D : Matrix3D [read-only]
Returns the 3d matrix representing the camera inverse scene transform for the view.
| Camera3D | ||
![]() | layer : Sprite
An optional layer sprite used to draw into inseatd of the default view.
| Object3D | |
| lens : AbstractLens
Defines the lens used for calculating the
projectionMatrix3D of the camera. | Camera3D | ||
![]() | materialLibrary : MaterialLibrary
Used in loaders to store all parsed materials contained in the model.
| Object3D | |
![]() | maxPersp : Number = 0
The maximum perspective value from which the 3d object can be viewed.
| Object3D | |
![]() | minPersp : Number = 0
The minimum perspective value from which the 3d object can be viewed.
| Object3D | |
![]() | position : Vector3D
Returns a 3d vector representing the local position of the 3d object.
| Object3D | |
| projectionMatrix3D : Matrix3D [read-only]
Returns the 3d matrix representing the camera projection for the view.
| Camera3D | ||
![]() | scene : Scene3D
Returns the scene to which the 3d object belongs
| Object3D | |
![]() | sceneMatrix3D : Matrix3D
Returns a 3d matrix representing the absolute transformation of the 3d object in the scene.
| Object3D | |
| screenMatrix3D : Matrix3D [read-only]
Returns the 3d matrix used in resolving screen space for the render loop.
| Camera3D | ||
![]() | screenZ : Number
Returns the z-sorting position of the 3d object.
| Object3D | |
![]() | type : String
Returns the type of 3d object.
| Object3D | |
![]() | url : String
Returns the source url of the 3d object, or the name of the family of generative geometry objects if not loaded from an external source.
| Object3D | |
![]() | viewMatrix3D : Matrix3D
Returns a 3d matrix representing the absolute transformation of the 3d object in the view.
| Object3D | |
| zoom : Number
Defines the overall scale value of the view.
| Camera3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new
Camera3D object. | Camera3D | ||
![]() |
Duplicates the 3D object's properties to another
Object3D object
| Object3D | |
![]() |
lookAt(target:Vector3D, upAxis:Vector3D = null):void
Rotates the 3D object around to face a point defined relative to the local coordinates of the parent
ObjectContainer3D. | Object3D | |
![]() |
moveBackward(distance:Number):void
Moves the 3D object backwards along it's local z axis
| Object3D | |
![]() |
moveDown(distance:Number):void
Moves the 3D object backwards along it's local y axis
| Object3D | |
![]() |
moveForward(distance:Number):void
Moves the 3D object forwards along it's local z axis
| Object3D | |
![]() |
moveLeft(distance:Number):void
Moves the 3D object backwards along it's local x axis
| Object3D | |
![]() |
moveRight(distance:Number):void
Moves the 3D object forwards along it's local x axis
| Object3D | |
![]() |
moveUp(distance:Number):void
Moves the 3D object forwards along it's local y axis
| Object3D | |
![]() |
pitch(degrees:Number):void
Rotates the 3D object around it's local x-axis
| Object3D | |
![]() |
roll(degrees:Number):void
Rotates the 3D object around it's local z-axis
| Object3D | |
|
rotate(degrees:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the
Camera3D object around an axis by a defined degrees. | Camera3D | ||
|
screen(vertex:Vector3D):Vector3D
Returns a
Vector3D object describing the resolved x and y position of the given 3d vertex position. | Camera3D | ||
![]() |
translate(axis:Vector3D, distance:Number):void
Moves the 3D object along a vector by a defined length
| Object3D | |
![]() |
yaw(degrees:Number):void
Rotates the 3D object around it's local y-axis
| Object3D | |
| Constant | Defined by | ||
|---|---|---|---|
| toDEGREES : Number = 57.29577951308232 | Camera3D | ||
| toRADIANS : Number = 0.017453292519943295 | Camera3D | ||
| focus | property |
focus:Number [read-write]Defines the distance from the focal point of the camera to the viewing plane.
Implementation public function get focus():Number
public function set focus(value:Number):void
| invSceneMatrix3D | property |
invSceneMatrix3D:Matrix3D [read-only]Returns the 3d matrix representing the camera inverse scene transform for the view.
Implementation public function get invSceneMatrix3D():Matrix3D
| _lens | property |
arcane var _lens:AbstractLens
| lens | property |
lens:AbstractLens [read-write]
Defines the lens used for calculating the projectionMatrix3D of the camera.
public function get lens():AbstractLens
public function set lens(value:AbstractLens):void
| _projectionMatrix3D | property |
arcane var _projectionMatrix3D:Matrix3D
| projectionMatrix3D | property |
projectionMatrix3D:Matrix3D [read-only]Returns the 3d matrix representing the camera projection for the view.
Implementation public function get projectionMatrix3D():Matrix3D
| _screenMatrix3D | property |
arcane var _screenMatrix3D:Matrix3D
| screenMatrix3D | property |
screenMatrix3D:Matrix3D [read-only]Returns the 3d matrix used in resolving screen space for the render loop.
Implementation public function get screenMatrix3D():Matrix3D
See also
| zoom | property |
zoom:Number [read-write]Defines the overall scale value of the view.
Implementation public function get zoom():Number
public function set zoom(value:Number):void
| Camera3D | () | constructor |
public function Camera3D(zoom:Number = 10, focus:Number = 100, lens:AbstractLens = null)Parameters
zoom:Number (default = 10) — Defines the distance from the focal point of the camera to the viewing plane.
|
|
focus:Number (default = 100) — Defines the overall scale value of the view.
|
|
lens:AbstractLens (default = null) — Defines the lens used for calculating the projectionMatrix3D of the camera.
|
| rotate | () | method |
public override function rotate(degrees:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the Camera3D object around an axis by a defined degrees.
degrees:Number — The degree of the rotation.
|
|
axis:Vector3D — The axis or direction of rotation. The usual axes are the X_AXIS (Vector3D(1,0,0)), Y_AXIS (Vector3D(0,1,0)), and Z_AXIS (Vector3D(0,0,1)).
|
|
pivotPoint:Vector3D (default = null) — A point that determines the center of an object's rotation. The default pivot point for an object is its registration point.
|
| screen | () | method |
public function screen(vertex:Vector3D):Vector3D
Returns a Vector3D object describing the resolved x and y position of the given 3d vertex position.
vertex:Vector3D — The vertex to be resolved.
|
Vector3D |
| toDEGREES | constant |
protected const toDEGREES:Number = 57.29577951308232
| toRADIANS | constant |
protected const toRADIANS:Number = 0.017453292519943295