@@ -66,28 +66,28 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
6666 Location origin = player .getLocation ();
6767 Vector direction = origin .getDirection ();
6868
69- Arc arc = new Arc (player .getLocation (), 0 , 180 , 3 , 9 );
70- arc .calculateLocations ()
71- .stream ()
72- .map (loc -> {
73- Vector v = VectorUtils .createVector (loc , arc .getOrigin ());
74- Matrix matrix = Matrixs .rotateAroundYAxis (-player .getLocation ().getYaw ());
75- return arc .getOrigin ().clone ().add (matrix .applyVector (v ));
76- }).collect (Collectors .toList ());
77-
78-
79- Random random = new Random ();
80- Ray ray = new Ray (origin , direction , 10 , 0.33 );
81- List <Location > locs = Lists .newArrayList ();
82- for (Location location : ray .calculateLocations ()) {
83- locs .add (location .clone ().add (0 , random .nextBoolean () ? 0.5 + random .nextDouble () : 0.5 + (-random .nextDouble ()), 0 ));
84- }
85- for (int i = 0 ; i < locs .size (); i ++) {
86- if (i + 1 == locs .size ()) {
87- break ;
88- }
89- Line .buildLine (locs .get (i ), locs .get (i + 1 ), 0.02 , Particle .DRIP_LAVA );
90- }
69+ // Arc arc = new Arc(player.getLocation(), 0, 180, 3, 9);
70+ // arc.calculateLocations()
71+ // .stream()
72+ // .map(loc -> {
73+ // Vector v = VectorUtils.createVector(loc, arc.getOrigin());
74+ // Matrix matrix = Matrixs.rotateAroundYAxis(-player.getLocation().getYaw());
75+ // return arc.getOrigin().clone().add(matrix.applyVector(v));
76+ // }).collect(Collectors.toList());
77+ //
78+ //
79+ // Random random = new Random();
80+ // Ray ray = new Ray(origin, direction, 10, 0.33);
81+ // List<Location> locs = Lists.newArrayList();
82+ // for (Location location : ray.calculateLocations()) {
83+ // locs.add(location.clone().add(0, random.nextBoolean() ? 0.5 + random.nextDouble() : 0.5 + (-random.nextDouble()), 0));
84+ // }
85+ // for (int i = 0; i < locs.size(); i++) {
86+ // if (i + 1 == locs.size()) {
87+ // break;
88+ // }
89+ // Line.buildLine(locs.get(i), locs.get(i + 1), 0.02, Particle.DRIP_LAVA);
90+ // }
9191
9292// double radiansI = Math.toRadians(0);
9393// double xi = Math.cos(radiansI);
0 commit comments