Skip to main content

ARSwirlControl

class ARSwirlControl implements ARControl

One finger swirl control on single axis

constructor​

new ARSwirlControl(options, options.scale, options.showIndicator)

Create new ARSwirlControl

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
optionsARSwirlControlOptions✔️{}Options
options.scalenumber✔️1Scale(speed) factor of the rotation
options.showIndicatorboolean✔️trueWhether to show rotation indicator or not.

Properties​

rotation​

Current rotation value

enabled​

readonly

Whether this control is enabled or not.

scale​

Scale(speed) factor of this control.

Methods​

enable​

Enable this control

disable​

Disable this control