function createCrumbs(numberAppIcons, radius, looseAxisPos){
    for(i = -1; i < numberAppIcons; i++){
        var c = document.createElement('a-sphere');
        c.setAttribute('color', 'silver');
        c.setAttribute('radius', 0.1);
        c.setAttribute('id', 'c'+_crumbNum);
        c.setAttribute('dynamic-body', 'shape:box;linearDamping:1;angularDamping:1;mass:0.1');
        _crumbNum++;
        var cpx = radius * Math.cos((360 / numberAppIcons)*i);
        var cpy = looseAxisPos;
        var cpz = radius * Math.sin((360 / numberAppIcons)*i);
        c.setAttribute('position', cpx + ' ' + cpy + ' ' +cpz );
        document.getElementsByTagName('a-scene')[0].appendChild(c);
    }
}
//creates and positions the crumbs in the level
creates and positions the crumbs in the level
creates and positions the crumbs in the level
function createCrumbs(numberAppIcons, radius, looseAxisPos){
    for(i = -1; i < numberAppIcons; i++){
        var c = document.createElement('a-sphere');
        c.setAttribute('color', 'silver');
        c.setAttribute('radius', 0.1);
        c.setAttribute('id', 'c'+_crumbNum);
        c.setAttribute('dynamic-body', 'shape:box;linearDamping:1;angularDamping:1;mass:0.1');
        _crumbNum++;
        var cpx = radius * Math.cos((360 / numberAppIcons)*i);
        var cpy = looseAxisPos;
        var cpz = radius * Math.sin((360 / numberAppIcons)*i);
        c.setAttribute('position', cpx + ' ' + cpy + ' ' +cpz );
        document.getElementsByTagName('a-scene')[0].appendChild(c);
    }
}
function createCrumbs ( numberAppIcons , radius , looseAxisPos ) { for ( i = - 1 ; i < numberAppIcons ; i ++ ) { var c = document . createElement ( 'a-sphere' ) ; c . setAttribute ( 'color' , 'silver' ) ; c . setAttribute ( 'radius' , 0.1 ) ; c . setAttribute ( 'id' , 'c' + _crumbNum ) ; c . setAttribute ( 'dynamic-body' , 'shape:box;linearDamping:1;angularDamping:1;mass:0.1' ) ; _crumbNum ++ ; var cpx = radius * Math . cos ( ( 360 / numberAppIcons ) * i ) ; var cpy = looseAxisPos ; var cpz = radius * Math . sin ( ( 360 / numberAppIcons ) * i ) ; c . setAttribute ( 'position' , cpx + ' ' + cpy + ' ' + cpz ) ; document . getElementsByTagName ( 'a-scene' ) [ 0 ] . appendChild ( c ) ; } }
creates and positions the crumbs in the level
creates and positions the crumbs in the level