| Package | org.flintparticles.threeD.renderers.controllers |
| Class | public class OrbitCamera |
| Inheritance | OrbitCamera KeyboardControllerBase Object |
After assigning a camera to an instance of this class, the camera responds to the following keyboard input
| Property | Defined By | ||
|---|---|---|---|
![]() | autoStart : Boolean = true | KeyboardControllerBase | |
![]() | camera : Camera
The camera to control with this controller. | KeyboardControllerBase | |
![]() | fixedFrameTime : Number
Indicates a fixed time (in seconds) to use for every frame. | KeyboardControllerBase | |
![]() | maximumFrameTime : Number
The maximum duration for a single update frame, in seconds. | KeyboardControllerBase | |
| rotationRate : Number
The rate at which to rotate the camera when the appropriate keys are
pressed, in radians per second. | OrbitCamera | ||
![]() | stage : DisplayObject
The stage - used for listening to keyboard events
| KeyboardControllerBase | |
| trackRate : Number
The rate at which to track the camera when the appropriate keys are
pressed, in units per second. | OrbitCamera | ||
![]() | useInternalTick : Boolean
Indicates whether the controller should manage its own internal update
tick. | KeyboardControllerBase | |
| Method | Defined By | ||
|---|---|---|---|
OrbitCamera(stage:DisplayObject = null, camera:Camera = null, rotationRate:Number = 1, trackRate:Number = 100, useInternalTick:Boolean = true)
The constructor creates an OrbitCamera controller. | OrbitCamera | ||
![]() | start():void
Starts the controller. | KeyboardControllerBase | |
![]() | stop():void
Stops the controller. | KeyboardControllerBase | |
![]() | update(time:Number):void | KeyboardControllerBase | |
| Method | Defined By | ||
|---|---|---|---|
updateCamera(time:Number):void [override] | OrbitCamera | ||
| rotationRate | property |
rotationRate:NumberThe rate at which to rotate the camera when the appropriate keys are pressed, in radians per second.
public function get rotationRate():Number public function set rotationRate(value:Number):void| trackRate | property |
trackRate:NumberThe rate at which to track the camera when the appropriate keys are pressed, in units per second.
public function get trackRate():Number public function set trackRate(value:Number):void| OrbitCamera | () | Constructor |
public function OrbitCamera(stage:DisplayObject = null, camera:Camera = null, rotationRate:Number = 1, trackRate:Number = 100, useInternalTick:Boolean = true)The constructor creates an OrbitCamera controller.
Parametersstage:DisplayObject (default = null) — The display object on which to listen for keyboard input. This should usually
be a reference to the stage.
| |
camera:Camera (default = null) — The camera to control with this controller.
| |
rotationRate:Number (default = 1) — The rate at which to rotate the camera when the appropriate keys are
pressed, in radians per second.
| |
trackRate:Number (default = 100) — The rate at which to track the camera when the appropriate keys are
pressed, in units per second.
| |
useInternalTick:Boolean (default = true) — Indicates whether the camera controller should use its
own tick event to update its state. The internal tick process is tied
to the framerate and updates the camera every frame.
|
| updateCamera | () | method |
override protected function updateCamera(time:Number):voidParameters
time:Number |