onRotateStart method
dynamic
onRotateStart()
Implementation
onRotateStart() {
if (this.enabled && this.enableRotate) {
this.dispatchEvent(_startEvent);
this.updateTbState(STATE2.ZROTATE, true);
//this._startFingerRotation = event.rotation;
this._startFingerRotation =
this.getAngle(this._touchCurrent[1], this._touchCurrent[0]) +
this.getAngle(this._touchStart[1], this._touchStart[0]);
this._currentFingerRotation = this._startFingerRotation;
this.camera.getWorldDirection(this._rotationAxis); //rotation axis
if (!this.enablePan && !this.enableZoom) {
this.activateGizmos(true);
}
}
}