Package | away3dlite.cameras |
Class | public class TargetCamera3D |
Inheritance | TargetCamera3D Camera3D Object3D flash.display.Sprite |
Subclasses | HoverCamera3D |
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
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
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
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 | ||
target : Object3D
The 3d object targeted by the camera.
| TargetCamera3D | ||
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 | ||
---|---|---|---|
TargetCamera3D
(focus:Number = 10, zoom:Number = 100, target:Object3D = null, lens:AbstractLens = null)
Creates a new
TargetCamera3D object. | TargetCamera3D | ||
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 |
target | property |
public var target:Object3D
The 3d object targeted by the camera.
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 )
|