Camera controls.
These constants define camera controls.
v3d.TweenLinear
v3d.TweenSpherical
Creates a new Controls. Note that this class is not intended to be called directly; you probably want to use OrbitControls, FlyingControls, or FirstPersonControls instead.
Whether or not the mouse will be allowed to move above the <iframe> elements located on the page, when it's controlling the camera. Default is false. Please note that if the App.enableCSSRenderer() method is called, it will set .allowMouseOverIframes to true.
To allow camera movements when mouse cursor is above iframes, the internal mouse event listeners execute .lockIframeEvents() once the user starts moving the camera, and .unlockIframeEvents() once the movement is stopped.
The HTMLElement used to listen for mouse / touch events. This must be passed in the constructor; changing it here will not set up new event listeners. Default is the whole document.
Whether or not the controls are enabled.
The camera (or other object) that is being controlled.
Prevent all <iframe> elements located on the current page to capture user events. Usually this method is called by the internal event listeners of the corresponding controls class. To be able to execute it manually, set .allowMouseOverIframes to false.
Allow all <iframe> elements located on the current page to capture user events. Usually this method is called by the internal event listeners of the corresponding controls class. To be able to execute it manually, set .allowMouseOverIframes to false.
For more info on how to obtain the source code of this module see this page.