Packageaway3d.controllers
Classpublic class LookAtController
InheritanceLookAtController Inheritance ControllerBase Inheritance Object
Subclasses HoverController, SpringController

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

See also

away3d.containers.View3D


Public Properties
 PropertyDefined By
 InheritedautoUpdate : Boolean
Determines whether the controller applies updates automatically.
ControllerBase
  lookAtObject : ObjectContainer3D
The 3d object that the target looks at.
LookAtController
  lookAtPosition : Vector3D
The Vector3D object that the target looks at.
LookAtController
 InheritedtargetObject : Entity
Target object on which the controller acts.
ControllerBase
Protected Properties
 PropertyDefined By
 Inherited_autoUpdate : Boolean = true
ControllerBase
  _lookAtObject : ObjectContainer3D
LookAtController
  _lookAtPosition : Vector3D
LookAtController
  _origin : Vector3D
LookAtController
 Inherited_targetObject : Entity
ControllerBase
Public Methods
 MethodDefined By
  
LookAtController(targetObject:Entity = null, lookAtObject:ObjectContainer3D = null)
Creates a new LookAtController object.
LookAtController
  
update():void
[override] Manually applies updates to the target 3D object.
LookAtController
Protected Methods
 MethodDefined By
 Inherited
ControllerBase
Property Detail
_lookAtObjectproperty
protected var _lookAtObject:ObjectContainer3D

_lookAtPositionproperty 
protected var _lookAtPosition:Vector3D

_originproperty 
protected var _origin:Vector3D

lookAtObjectproperty 
lookAtObject:ObjectContainer3D

The 3d object that the target looks at.


Implementation
    public function get lookAtObject():ObjectContainer3D
    public function set lookAtObject(value:ObjectContainer3D):void
lookAtPositionproperty 
lookAtPosition:Vector3D

The Vector3D object that the target looks at.


Implementation
    public function get lookAtPosition():Vector3D
    public function set lookAtPosition(value:Vector3D):void
Constructor Detail
LookAtController()Constructor
public function LookAtController(targetObject:Entity = null, lookAtObject:ObjectContainer3D = null)

Creates a new LookAtController object.

Parameters
targetObject:Entity (default = null)
 
lookAtObject:ObjectContainer3D (default = null)
Method Detail
update()method
override public function update():void

Manually applies updates to the target 3D object.