function Waypoint(scene, position, maxDistance) {
            var _this = this;
            var pos = scene.unit.getPosition(position);
            var radius = scene.unit.getLength(maxDistance);
            var graphics = new PIXI.Graphics();
            _this = _super.call(this, scene, graphics) || this;
            _this.graphics = graphics;
            _this.position = pos;
            _this.maxDistance = radius;
            _this.updateGraphics();
            return _this;
        }
/**
         * Creates a Waypoint at the specified `position` which is by default visible.
         *
         * @param scene The `Scene` in which the waypoint will be placed
         * @param position The position of the waypoint in meters
         * @param maxDistance The maximum distance to reach the waypoint in meters
         *
         * @see this.graphics where you can change the graphics
         */
Creates a Waypoint at the specified `position` which is by default visible.
@param scene The `Scene` in which the waypoint will be placed
@param position The position of the waypoint in meters
@param maxDistance The maximum distance to reach the waypoint in meters

@see this.graphics where you can change the graphics
Creates a Waypoint at the specified ` position ` which is by default visible . @param scene The ` Scene ` in which the waypoint will be placed @param position The position of the waypoint in meters @param maxDistance The maximum distance to reach the waypoint in meters @see this . graphics where you can change the graphics
function Waypoint(scene, position, maxDistance) {
            var _this = this;
            var pos = scene.unit.getPosition(position);
            var radius = scene.unit.getLength(maxDistance);
            var graphics = new PIXI.Graphics();
            _this = _super.call(this, scene, graphics) || this;
            _this.graphics = graphics;
            _this.position = pos;
            _this.maxDistance = radius;
            _this.updateGraphics();
            return _this;
        }
function Waypoint ( scene , position , maxDistance ) { var _this = this ; var pos = scene . unit . getPosition ( position ) ; var radius = scene . unit . getLength ( maxDistance ) ; var graphics = new PIXI . Graphics ( ) ; _this = _super . call ( this , scene , graphics ) || this ; _this . graphics = graphics ; _this . position = pos ; _this . maxDistance = radius ; _this . updateGraphics ( ) ; return _this ; }
Creates a Waypoint at the specified `position` which is by default visible.
Creates a Waypoint at the specified ` position ` which is by default visible .