ARSwirlControl
class ARSwirlControl implements ARControl
One finger swirl control on single axis
constructor
new ARSwirlControl(options, options.scale, options.showIndicator)
Create new ARSwirlControl
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
options | ARSwirlControlOptions | ✔️ | {} | Options |
options.scale | number | ✔️ | 1 | Scale(speed) factor of the rotation |
options.showIndicator | boolean | ✔️ | true | Whether to show rotation indicator or not. |
Properties
rotation
Current rotation value
enabled
Whether this control is enabled or not.
scale
Scale(speed) factor of this control.
Methods
enable
Enable this control
disable
Disable this control