Packageaway3dlite.cameras
Classpublic class HoverCamera3D
InheritanceHoverCamera3D Inheritance TargetCamera3D Inheritance Camera3D Inheritance Object3D Inheritance flash.display.Sprite

Extended camera used to hover round 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
  distance : Number = 800
Distance between the camera and the specified target.
HoverCamera3D
 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
  maxTiltAngle : Number = 90
Maximum bounds for the tiltAngle.
HoverCamera3D
 InheritedminPersp : Number = 0
The minimum perspective value from which the 3d object can be viewed.
Object3D
  minTiltAngle : Number = -90
Minimum bounds for the tiltAngle.
HoverCamera3D
  panAngle : Number = 0
Rotation of the camera in degrees around the y axis.
HoverCamera3D
 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
  steps : Number = 8
Fractional step taken each time the hover() method is called.
HoverCamera3D
 Inheritedtarget : Object3D
The 3d object targeted by the camera.
TargetCamera3D
  tiltAngle : Number = 0
Elevation angle of the camera in degrees.
HoverCamera3D
 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
  wrapPanAngle : Boolean = false
Defines whether the value of the pan angle wraps when over 360 degrees or under 0 degrees.
HoverCamera3D
  yfactor : Number = 2
Fractional difference in distance between the horizontal camera orientation and vertical camera orientation.
HoverCamera3D
 Inheritedzoom : Number
Defines the overall scale value of the view.
Camera3D
Public Methods
 MethodDefined by
  
HoverCamera3D
(zoom:Number = 10, focus:Number = 100, target:Object3D = null, panAngle:Number = 0, tiltAngle:Number = 0, distance:Number = 800, lens:AbstractLens = null)
Creates a new HoverCamera3D object.
HoverCamera3D
 Inherited
clone(object:Object3D = null):Object3D
Duplicates the 3D object's properties to another Object3D object
Object3D
  
hover(jumpTo:Boolean = false):Boolean
Updates the camera orientation.
HoverCamera3D
 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
distanceproperty
public var distance:Number = 800

Distance between the camera and the specified target. Defaults to 800.

maxTiltAngleproperty 
public var maxTiltAngle:Number = 90

Maximum bounds for the tiltAngle. Defaults to 90.

See also

minTiltAngleproperty 
public var minTiltAngle:Number = -90

Minimum bounds for the tiltAngle. Defaults to -90.

See also

panAngleproperty 
public var panAngle:Number = 0

Rotation of the camera in degrees around the y axis. Defaults to 0.

stepsproperty 
public var steps:Number = 8

Fractional step taken each time the hover() method is called. Defaults to 8. Affects the speed at which the tiltAngle and panAngle resolve to their targets.

See also

tiltAngleproperty 
public var tiltAngle:Number = 0

Elevation angle of the camera in degrees. Defaults to 90.

wrapPanAngleproperty 
public var wrapPanAngle:Boolean = false

Defines whether the value of the pan angle wraps when over 360 degrees or under 0 degrees. Defaults to false.

yfactorproperty 
public var yfactor:Number = 2

Fractional difference in distance between the horizontal camera orientation and vertical camera orientation. Defaults to 2.

See also

Constructor detail
HoverCamera3D()constructor
public function HoverCamera3D(zoom:Number = 10, focus:Number = 100, target:Object3D = null, panAngle:Number = 0, tiltAngle:Number = 0, distance:Number = 800, 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.
 
target:Object3D (default = null) — The 3d object targeted by the camera.
 
panAngle:Number (default = 0)
 
tiltAngle:Number (default = 0)
 
distance:Number (default = 800)
 
lens:AbstractLens (default = null)
Init Parameters
Method detail
hover()method
public function hover(jumpTo:Boolean = false):Boolean

Updates the camera orientation. Values are calculated using the defined tiltAngle, panAngle and steps variables.

Parameters
jumpTo:Boolean (default = false) — Determines if step property is used. Defaults to false.

Returns
Boolean — True if the camera position was updated, otherwise false.

See also

Wiki link
Click to go to the wiki page for 'away3dlite.cameras.HoverCamera3D'

Code examples

Comments