View source
class HoverController
package away3d.controllers
extends LookAtController › ControllerBase
extended by FollowController
Available on all platforms
Extended camera used to hover round a specified target object.
See also:
away3d.containers.View3D
Constructor
new(?targetObject:Entity, ?lookAtObject:ObjectContainer3D, panAngle:Float = 0, tiltAngle:Float = 90, distance:Float = 1000, minTiltAngle:Float = -90, maxTiltAngle:Float = 90, ?minPanAngle:Float, ?maxPanAngle:Float, steps:Int = 8, yFactor:Float = 2, wrapPanAngle:Bool = false)
Creates a new HoverController object.
Variables
Methods
update(interpolate:Bool = true):Void
Updates the current tilt angle and pan angle values.
Values are calculated using the defined tiltAngle, panAngle and steps variables.
Parameters:
interpolate | If the update to a target pan- or tiltAngle is interpolated. Default is true. |
|---|
See also:
tiltAngle
panAngle
steps