reset method
dynamic
reset()
Reset trackball
Implementation
reset() {
camera.zoom = _zoom0;
if (camera is PerspectiveCamera) {
camera.fov = _fov0;
}
camera.near = _nearPos;
camera.far = _farPos;
_cameraMatrixState.copy(_cameraMatrixState0);
_cameraMatrixState.decompose(camera.position, camera.quaternion, camera.scale);
camera.up.copy(_up0);
camera.updateMatrix();
camera.updateProjectionMatrix();
_gizmoMatrixState.copy(_gizmoMatrixState0);
_gizmoMatrixState0.decompose(_gizmos.position, _gizmos.quaternion, _gizmos.scale);
_gizmos.updateMatrix();
_tbRadius = calculateTbRadius(camera);
makeGizmos(_gizmos.position, _tbRadius);
camera.lookAt(_gizmos.position);
updateTbState(State2.idle, false);
dispatchEvent(_changeEvent);
}