Packageaway3d.controllers
Classpublic class FollowController
InheritanceFollowController Inheritance HoverController Inheritance LookAtController Inheritance ControllerBase Inheritance Object

Controller used to follow behind an object on the XZ plane, with an optional elevation (tiltAngle).

See also

away3d.containers.View3D


Public Properties
 PropertyDefined By
 InheritedautoUpdate : Boolean
Determines whether the controller applies updates automatically.
ControllerBase
 Inheriteddistance : Number
Distance between the camera and the specified target.
HoverController
 InheritedlookAtObject : ObjectContainer3D
The 3d object that the target looks at.
LookAtController
 InheritedlookAtPosition : Vector3D
The Vector3D object that the target looks at.
LookAtController
 InheritedmaxPanAngle : Number
Maximum bounds for the panAngle.
HoverController
 InheritedmaxTiltAngle : Number
Maximum bounds for the tiltAngle.
HoverController
 InheritedminPanAngle : Number
Minimum bounds for the panAngle.
HoverController
 InheritedminTiltAngle : Number
Minimum bounds for the tiltAngle.
HoverController
 InheritedpanAngle : Number
Rotation of the camera in degrees around the y axis.
HoverController
 Inheritedsteps : uint
Fractional step taken each time the hover() method is called.
HoverController
 InheritedtargetObject : Entity
Target object on which the controller acts.
ControllerBase
 InheritedtiltAngle : Number
Elevation angle of the camera in degrees.
HoverController
 InheritedwrapPanAngle : Boolean
Defines whether the value of the pan angle wraps when over 360 degrees or under 0 degrees.
HoverController
 InheritedyFactor : Number
Fractional difference in distance between the horizontal camera orientation and vertical camera orientation.
HoverController
Protected Properties
 PropertyDefined By
 Inherited_autoUpdate : Boolean = true
ControllerBase
 Inherited_lookAtObject : ObjectContainer3D
LookAtController
 Inherited_lookAtPosition : Vector3D
LookAtController
 Inherited_origin : Vector3D
LookAtController
 Inherited_targetObject : Entity
ControllerBase
Public Methods
 MethodDefined By
  
FollowController(targetObject:Entity = null, lookAtObject:ObjectContainer3D = null, tiltAngle:Number = 45, distance:Number = 700)
FollowController
  
update():void
[override]
FollowController
Protected Methods
 MethodDefined By
 Inherited
ControllerBase
Constructor Detail
FollowController()Constructor
public function FollowController(targetObject:Entity = null, lookAtObject:ObjectContainer3D = null, tiltAngle:Number = 45, distance:Number = 700)



Parameters
targetObject:Entity (default = null)
 
lookAtObject:ObjectContainer3D (default = null)
 
tiltAngle:Number (default = 45)
 
distance:Number (default = 700)
Method Detail
update()method
override public function update():void