Packageaway3dlite.cameras
Classpublic class Camera3D
InheritanceCamera3D Inheritance Object3D Inheritance flash.display.Sprite
Subclasses TargetCamera3D

Basic camera used to resolve a view.

See also

away3dlite.containers.View3D


Public Properties
 PropertyDefined By
 InheritedanimationLibrary : 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
 InheritedgeometryLibrary : 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
 Inheritedlayer : Sprite
An optional layer sprite used to draw into inseatd of the default view.
Object3D
 InheritedmaterialLibrary : MaterialLibrary
Used in loaders to store all parsed materials contained in the model.
Object3D
 Inheritedposition : Vector3D
[read-only] 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
 Inheritedscene : Scene3D
[read-only] Returns the scene to which the 3d object belongs
Object3D
 InheritedsceneMatrix3D : Matrix3D
[read-only] 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
 InheritedscreenZ : Number
[read-only] Returns the z-sorting position of the 3d object.
Object3D
 Inheritedtype : String
Returns the type of 3d object.
Object3D
 Inheritedurl : 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
 InheritedviewMatrix3D : Matrix3D
[read-only] 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
Public Methods
 MethodDefined By
  
Camera3D(zoom:Number = 10, focus:Number = 100)
Creates a new Camera3D object.
Camera3D
 Inherited
clone(object:Object3D = null):Object3D
Duplicates the 3d object's properties to another Object3D object
Object3D
 Inherited
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
Protected Methods
 MethodDefined By
 Inherited
copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void
Object3D
Events
 Event Summary Defined By
 InheritedDispatched when a user presses the left hand mouse button while the cursor is over the 3d object.Object3D
 InheritedDispatched when a user moves the cursor while it is over the 3d object.Object3D
 InheritedDispatched when a user moves the cursor away from the 3d object.Object3D
 InheritedDispatched when a user moves the cursor over the 3d object.Object3D
 InheritedDispatched when a user releases the left hand mouse button while the cursor is over the 3d object.Object3D
 InheritedDispatched when a user rolls out of the 3d object.Object3D
 InheritedDispatched when a user rolls over the 3d object.Object3D
Protected Constants
 ConstantDefined By
  toDEGREES : Number = 57.29577951308232
Camera3D
  toRADIANS : Number = 0.017453292519943295
Camera3D
Property Detail
focusproperty
focus:Number

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
invSceneMatrix3Dproperty 
invSceneMatrix3D:Matrix3D  [read-only]

Returns the 3d matrix representing the camera inverse scene transform for the view.


Implementation
    public function get invSceneMatrix3D():Matrix3D
projectionMatrix3Dproperty 
projectionMatrix3D:Matrix3D  [read-only]

Returns the 3d matrix representing the camera projection for the view.


Implementation
    public function get projectionMatrix3D():Matrix3D
screenMatrix3Dproperty 
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

zoomproperty 
zoom:Number

Defines the overall scale value of the view.


Implementation
    public function get zoom():Number
    public function set zoom(value:Number):void
Constructor Detail
Camera3D()Constructor
public function Camera3D(zoom:Number = 10, focus:Number = 100)

Creates a new Camera3D object.

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.
####INIT####
Constant Detail
toDEGREESConstant
protected const toDEGREES:Number = 57.29577951308232

toRADIANSConstant 
protected const toRADIANS:Number = 0.017453292519943295