Package | away3d.controllers |
Class | public class FirstPersonController |
Inheritance | FirstPersonController ControllerBase Object |
See also
Property | Defined By | ||
---|---|---|---|
autoUpdate : Boolean
Determines whether the controller applies updates automatically. | ControllerBase | ||
maxTiltAngle : Number
Maximum bounds for the tiltAngle. | FirstPersonController | ||
minTiltAngle : Number
Minimum bounds for the tiltAngle. | FirstPersonController | ||
panAngle : Number
Rotation of the camera in degrees around the y axis. | FirstPersonController | ||
steps : uint
Fractional step taken each time the hover() method is called. | FirstPersonController | ||
targetObject : Entity
Target object on which the controller acts. | ControllerBase | ||
tiltAngle : Number
Elevation angle of the camera in degrees. | FirstPersonController |
Method | Defined By | ||
---|---|---|---|
FirstPersonController(targetObject:Entity = null, panAngle:Number = 0, tiltAngle:Number = 90, minTiltAngle:Number = -90, maxTiltAngle:Number = 90, steps:uint = 8)
Creates a new HoverController object. | FirstPersonController | ||
incrementStrafe(val:Number):void | FirstPersonController | ||
incrementWalk(val:Number):void | FirstPersonController | ||
update():void [override]
Updates the current tilt angle and pan angle values. | FirstPersonController |
_currentPanAngle | property |
arcane var _currentPanAngle:Number = 0
_currentTiltAngle | property |
arcane var _currentTiltAngle:Number = 90
maxTiltAngle | property |
maxTiltAngle:Number
Maximum bounds for the tiltAngle
. Defaults to 90.
public function get maxTiltAngle():Number
public function set maxTiltAngle(value:Number):void
See also
minTiltAngle | property |
minTiltAngle:Number
Minimum bounds for the tiltAngle
. Defaults to -90.
public function get minTiltAngle():Number
public function set minTiltAngle(value:Number):void
See also
panAngle | property |
panAngle:Number
Rotation of the camera in degrees around the y axis. Defaults to 0.
public function get panAngle():Number
public function set panAngle(value:Number):void
steps | property |
steps:uint
Fractional step taken each time the hover()
method is called. Defaults to 8.
Affects the speed at which the tiltAngle
and panAngle
resolve to their targets.
public function get steps():uint
public function set steps(value:uint):void
See also
tiltAngle | property |
tiltAngle:Number
Elevation angle of the camera in degrees. Defaults to 90.
public function get tiltAngle():Number
public function set tiltAngle(value:Number):void
FirstPersonController | () | Constructor |
public function FirstPersonController(targetObject:Entity = null, panAngle:Number = 0, tiltAngle:Number = 90, minTiltAngle:Number = -90, maxTiltAngle:Number = 90, steps:uint = 8)
Creates a new HoverController
object.
targetObject:Entity (default = null )
| |
panAngle:Number (default = 0 )
| |
tiltAngle:Number (default = 90 )
| |
minTiltAngle:Number (default = -90 )
| |
maxTiltAngle:Number (default = 90 )
| |
steps:uint (default = 8 )
|
incrementStrafe | () | method |
public function incrementStrafe(val:Number):void
Parameters
val:Number |
incrementWalk | () | method |
public function incrementWalk(val:Number):void
Parameters
val:Number |
update | () | method |
override public function update():void
Updates the current tilt angle and pan angle values.
Values are calculated using the defined tiltAngle
, panAngle
and steps
variables.
See also