Extended camera used to hover round a specified target object.


Inherited from LookAtController -> ControllerBase.


Can be created using method new:

Lib.Away3D.Controllers.HoverController.new(targetObject, lookAtObject, panAngle, tiltAngle, distance, minTiltAngle, maxTiltAngle, minPanAngle,  maxPanAngle, steps, yFactor, wrapPanAngle)

Creates a new HoverController object.

targetObject - Entity (default = nil) 

lookAtObject - ObjectContainer3D (default = nil) The 3d object that the target looks at.

panAngle - (default = 0)

tiltAngle - (default = 90)

distance - (default = 1000)

minTiltAngle - (default = -90)

maxTiltAngle - (default = 90)

minPanAngle - (default = NaN)

maxPanAngle - (default = NaN)

steps - (default = 8)

yFactor - (default = 2)

wrapPanAngle - Boolean (default = false)


Created HoverController object has properties:

distance

Distance between the camera and the specified target.

maxPanAngle

Maximum bounds for the panAngle.

maxTiltAngle

Maximum bounds for the tiltAngle.

minPanAngle

Minimum bounds for the panAngle.

minTiltAngle

Minimum bounds for the tiltAngle.

panAngle

Rotation of the camera in degrees around the y axis.

steps

Fractional step taken each time the hover() method is called.

tiltAngle

Elevation angle of the camera in degrees.

wrapPanAngle

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

yFactor

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


methods:

update(interpolate)

[override] Updates the current tilt angle and pan angle values.

interpolate - Boolean (default = true) - If the update to a target pan- or tiltAngle is interpolated. Default is true.


Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?