Package | away3dlite.cameras |
Class | public class HoverCamera3D |
Inheritance | HoverCamera3D TargetCamera3D Camera3D Object3D flash.display.Sprite |
See also
Property | Defined by | ||
---|---|---|---|
animationLibrary : 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 | ||
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 | ||
maxTiltAngle : Number = 90
Maximum bounds for the
tiltAngle . | HoverCamera3D | ||
minPersp : 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 | ||
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 | ||
steps : Number = 8
Fractional step taken each time the
hover() method is called. | HoverCamera3D | ||
target : Object3D
The 3d object targeted by the camera.
| TargetCamera3D | ||
tiltAngle : Number = 0
Elevation angle of the camera in degrees.
| HoverCamera3D | ||
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 | ||
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 | ||
zoom : Number
Defines the overall scale value of the view.
| Camera3D |
Method | Defined 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 | ||
Duplicates the 3D object's properties to another
Object3D object
| Object3D | ||
hover(jumpTo:Boolean = false):Boolean
Updates the camera orientation.
| HoverCamera3D | ||
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 |
distance | property |
public var distance:Number = 800
Distance between the camera and the specified target. Defaults to 800.
maxTiltAngle | property |
public var maxTiltAngle:Number = 90
Maximum bounds for the tiltAngle
. Defaults to 90.
See also
minTiltAngle | property |
public var minTiltAngle:Number = -90
Minimum bounds for the tiltAngle
. Defaults to -90.
See also
panAngle | property |
public var panAngle:Number = 0
Rotation of the camera in degrees around the y axis. Defaults to 0.
steps | property |
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
tiltAngle | property |
public var tiltAngle:Number = 0
Elevation angle of the camera in degrees. Defaults to 90.
wrapPanAngle | property |
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.
yfactor | property |
public var yfactor:Number = 2
Fractional difference in distance between the horizontal camera orientation and vertical camera orientation. Defaults to 2.
See also
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 )
|
hover | () | method |
public function hover(jumpTo:Boolean = false):Boolean
Updates the camera orientation.
Values are calculated using the defined tiltAngle
, panAngle
and steps
variables.
jumpTo:Boolean (default = false ) — Determines if step property is used. Defaults to false.
|
Boolean — True if the camera position was updated, otherwise false.
|
See also