FirstPersonController
Extended camera used to hover round a specified target object.
Inherited from ControllerBase.
Can be created using method new:
Lib.Away3D.Controllers.FirstPersonController.new(targetObject, panAngle, tiltAngle, minTiltAngle, maxTiltAngle, steps, wrapPanAngle) |
Creates a new FirstPersonController object. |
targetObject - Entity (default = nil) panAngle - (default = 0) Rotation of the camera in degrees around the y axis. tiltAngle - (default = 90) Elevation angle of the camera in degrees. minTiltAngle - (default = -90) Minimum bounds for the tiltAngle maxTiltAngle - (default = 90) Maximum bounds for the tiltAngle. steps - (default = 8) Fractional step taken each time the hover() method is called.(Int) wrapPanAngle - Boolean (default = false) Defines whether the value of the pan angle wraps when over 360 degrees or under 0 degrees. |
Created FirstPersonController object has properties:
fly |
true/false |
maxTiltAngle |
Maximum bounds for the tiltAngle. (Number) |
minTiltAngle |
Minimum bounds for the tiltAngle. (Number) |
panAngle |
Rotation of the camera in degrees around the y axis. (Number) |
steps |
Fractional step taken each time the hover() method is called.(Int) |
tiltAngle |
Elevation angle of the camera in degrees. (Number) |
wrapPanAngle |
Defines whether the value of the pan angle wraps when over 360 degrees or under 0 degrees. Defaults to false. |
Methods:
incrementStrafe(val) |
Increments Strafe |
val - Number |
incrementWalk(val) |
Increments Walk |
val - Number |
update() |
[override] Updates the current tilt angle and pan angle values. |
|
Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation