private void addPlanets(Point3 startPoint, Point3 parallSize, int count  ){
        Random rand = new Random();
        int maxLoopEntries = 10000; //чтоб бесконечно не крутился
        while(count > 0 && maxLoopEntries>0){
            maxLoopEntries--;

            Point3 randPoint = new Point3(
                    rand.nextDouble()*parallSize.x,
                    rand.nextDouble()*parallSize.y,
                    rand.nextDouble()*parallSize.z
            );

            double newRadius = gameParams.smallestPlanetRadius + rand.nextDouble()*(gameParams.rangePlanetRadius);

            Point3 newPosition = startPoint.Add(randPoint);

            boolean canBeCreatedHere=true;
            for(int i = 0; i < planets.size();i++){
                if(newPosition.distTo(planets.get(i).position) <= newRadius + planets.get(i).radius)
                {
                    canBeCreatedHere=false;
                    break;
                }
            }

            if(canBeCreatedHere){
                count--;
                planets.add(new Planet(newPosition, newRadius
                        , rand.nextInt(gameParams.planetColorCount)));
            }
        }
    }