Packageaway3dlite.cameras
Classpublic class TargetCamera3D
InheritanceTargetCamera3D Inheritance Camera3D Inheritance Object3D Inheritance flash.display.Sprite
SubclassesHoverCamera3D

Extended camera used to automatically look at a specified target object.

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
 Inheritedfocus : 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
 InheritedinvSceneMatrix3D : Matrix3D
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
 Inheritedlens : AbstractLens
Defines the lens used for calculating the projectionMatrix3D of the camera.
Camera3D
 InheritedmaterialLibrary : MaterialLibrary
Used in loaders to store all parsed materials contained in the model.
Object3D
 InheritedmaxPersp : Number = 0
The maximum perspective value from which the 3d object can be viewed.
Object3D
 InheritedminPersp : Number = 0
The minimum perspective value from which the 3d object can be viewed.
Object3D
 Inheritedposition : Vector3D
Returns a 3d vector representing the local position of the 3d object.
Object3D
 InheritedprojectionMatrix3D : Matrix3D
Returns the 3d matrix representing the camera projection for the view.
Camera3D
 Inheritedscene : Scene3D
Returns the scene to which the 3d object belongs
Object3D
 InheritedsceneMatrix3D : Matrix3D
Returns a 3d matrix representing the absolute transformation of the 3d object in the scene.
Object3D
 InheritedscreenMatrix3D : Matrix3D
Returns the 3d matrix used in resolving screen space for the render loop.
Camera3D
 InheritedscreenZ : Number
Returns the z-sorting position of the 3d object.
Object3D
  target : Object3D
The 3d object targeted by the camera.
TargetCamera3D
 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
Returns a 3d matrix representing the absolute transformation of the 3d object in the view.
Object3D
 Inheritedzoom : Number
Defines the overall scale value of the view.
Camera3D
Public Methods
 MethodDefined by
  
TargetCamera3D
(focus:Number = 10, zoom:Number = 100, target:Object3D = null, lens:AbstractLens = null)
Creates a new TargetCamera3D object.
TargetCamera3D
 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
 Inherited
moveBackward(distance:Number):void
Moves the 3D object backwards along it's local z axis
Object3D
 Inherited
moveDown(distance:Number):void
Moves the 3D object backwards along it's local y axis
Object3D
 Inherited
moveForward(distance:Number):void
Moves the 3D object forwards along it's local z axis
Object3D
 Inherited
moveLeft(distance:Number):void
Moves the 3D object backwards along it's local x axis
Object3D
 Inherited
moveRight(distance:Number):void
Moves the 3D object forwards along it's local x axis
Object3D
 Inherited
moveUp(distance:Number):void
Moves the 3D object forwards along it's local y axis
Object3D
 Inherited
pitch(degrees:Number):void
Rotates the 3D object around it's local x-axis
Object3D
 Inherited
roll(degrees:Number):void
Rotates the 3D object around it's local z-axis
Object3D
 Inherited
rotate(degrees:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the Camera3D object around an axis by a defined degrees.
Camera3D
 Inherited
screen(vertex:Vector3D):Vector3D
Returns a Vector3D object describing the resolved x and y position of the given 3d vertex position.
Camera3D
 Inherited
translate(axis:Vector3D, distance:Number):void
Moves the 3D object along a vector by a defined length
Object3D
 Inherited
yaw(degrees:Number):void
Rotates the 3D object around it's local y-axis
Object3D
Protected Methods
 MethodDefined by
 Inherited
copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void
Object3D
Events
 EventSummaryDefined by
 Inherited Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object.Object3D
 Inherited Dispatched when a user moves the cursor while it is over the 3d object.Object3D
 Inherited Dispatched when a user moves the cursor away from the 3d object.Object3D
 Inherited Dispatched when a user moves the cursor over the 3d object.Object3D
 Inherited Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object.Object3D
 Inherited Dispatched when a user rolls out of the 3d object.Object3D
 Inherited Dispatched when a user rolls over the 3d object.Object3D
Protected Constants
 ConstantDefined by
 InheritedtoDEGREES : Number = 57.29577951308232
Camera3D
 InheritedtoRADIANS : Number = 0.017453292519943295
Camera3D
Property detail
targetproperty
public var target:Object3D

The 3d object targeted by the camera.

Constructor detail
TargetCamera3D()constructor
public function TargetCamera3D(focus:Number = 10, zoom:Number = 100, target:Object3D = null, lens:AbstractLens = null)Parameters
focus:Number (default = 10) — Defines the distance from the focal point of the camera to the viewing plane.
 
zoom:Number (default = 100) — Defines the overall scale value of the view.
 
target:Object3D (default = null) — The 3d object targeted by the camera.
 
lens:AbstractLens (default = null)
Init Parameters
Wiki link
Click to go to the wiki page for 'away3dlite.cameras.TargetCamera3D'

Code examples

Comments