sample/assets/js/babylon.max.js
function (value) {
                var _this = this;
                if (this._autoTransitionRange === value) {
                    return;
                }
                this._autoTransitionRange = value;
                var camera = this._attachedCamera;
                if (value) {
                    this._onMeshTargetChangedObserver = camera.onMeshTargetChangedObservable.add(function (mesh) {
                        if (!mesh) {
                            return;
                        }
                        mesh.computeWorldMatrix(true);
                        var diagonal = mesh.getBoundingInfo().diagonalLength;
                        _this.lowerRadiusTransitionRange = diagonal * 0.05;
                        _this.upperRadiusTransitionRange = diagonal * 0.05;
                    });
                }
                else if (this._onMeshTargetChangedObserver) {
                    camera.onMeshTargetChangedObservable.remove(this._onMeshTargetChangedObserver);
                }
            }
function (value) {
                var _this = this;
                if (this._autoTransitionRange === value) {
                    return;
                }
                this._autoTransitionRange = value;
                var camera = this._attachedCamera;
                if (value) {
                    this._onMeshTargetChangedObserver = camera.onMeshTargetChangedObservable.add(function (mesh) {
                        if (!mesh) {
                            return;
                        }
                        mesh.computeWorldMatrix(true);
                        var diagonal = mesh.getBoundingInfo().diagonalLength;
                        _this.lowerRadiusTransitionRange = diagonal * 0.05;
                        _this.upperRadiusTransitionRange = diagonal * 0.05;
                    });
                }
                else if (this._onMeshTargetChangedObserver) {
                    camera.onMeshTargetChangedObservable.remove(this._onMeshTargetChangedObserver);
                }
            }
function ( value ) { var _this = this ; if ( this . _autoTransitionRange === value ) { return ; } this . _autoTransitionRange = value ; var camera = this . _attachedCamera ; if ( value ) { this . _onMeshTargetChangedObserver = camera . onMeshTargetChangedObservable . add ( function ( mesh ) { if ( ! mesh ) { return ; } mesh . computeWorldMatrix ( true ) ; var diagonal = mesh . getBoundingInfo ( ) . diagonalLength ; _this . lowerRadiusTransitionRange = diagonal * 0.05 ; _this . upperRadiusTransitionRange = diagonal * 0.05 ; } ) ; } else if ( this . _onMeshTargetChangedObserver ) { camera . onMeshTargetChangedObservable . remove ( this . _onMeshTargetChangedObserver ) ; } }
Sets a value indicating if the lowerRadiusTransitionRange and upperRadiusTransitionRange are defined automatically
Transition ranges will be set to 5% of the bounding box diagonal in world space
Sets a value indicating if the lowerRadiusTransitionRange and upperRadiusTransitionRange are defined automatically Transition ranges will be set to 5% of the bounding box diagonal in world space