function UltrasonicSensor(unit, position, angle, angularRange) {
            /**
             * The measured distance in matter units
             */
            this.measuredDistance = Infinity;
            this.graphics = new PIXI.Graphics();
            this.unit = unit;
            this.position = unit.getPosition(position);
            this.angle = angle;
            this.angularRange = angularRange;
            this.maximumMeasurableDistance = 0;
            this.setMaximumMeasurableDistanceInMeters(2.5);
            this.updateGraphics();
        }
/**
         * @param angle angle towards the x axis in radians
         * @param angularRange angular range in radians
         */
@param angle angle towards the x axis in radians
@param angularRange angular range in radians
@param angle angle towards the x axis in radians @param angularRange angular range in radians
function UltrasonicSensor(unit, position, angle, angularRange) {
            this.measuredDistance = Infinity;
            this.graphics = new PIXI.Graphics();
            this.unit = unit;
            this.position = unit.getPosition(position);
            this.angle = angle;
            this.angularRange = angularRange;
            this.maximumMeasurableDistance = 0;
            this.setMaximumMeasurableDistanceInMeters(2.5);
            this.updateGraphics();
        }
function UltrasonicSensor ( unit , position , angle , angularRange ) { this . measuredDistance = Infinity ; this . graphics = new PIXI . Graphics ( ) ; this . unit = unit ; this . position = unit . getPosition ( position ) ; this . angle = angle ; this . angularRange = angularRange ; this . maximumMeasurableDistance = 0 ; this . setMaximumMeasurableDistanceInMeters ( 2.5 ) ; this . updateGraphics ( ) ; }
@param angle angle towards the x axis in radians
 @param angularRange angular range in radians
@param angle angle towards the x axis in radians @param angularRange angular range in radians
/**
             * The measured distance in matter units
             */