Advertisement
Guest User

oui

a guest
Apr 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. int max_height = 15;
  2. double max_radius = 10;
  3. int lines = 4;
  4. double height_increasement = 0.5;
  5. double radius_increasement = max_radius / max_height;
  6. for (int l = 0; l < lines; l++) {
  7. for (double y = 0; y < max_height; y+=height_increasement ) {
  8. double radius = y * radius_increasement;
  9. double x = Math.cos(Math.toRadians(360/lines*l + y*25 - angle)) * radius;
  10. double z = Math.sin(Math.toRadians(360/lines*l + y*25 - angle)) * radius;
  11. ParticleEffect.CLOUD.display(0, 0, 0, 1, 1, location.clone().add(x,y,z), 255);
  12. }
  13. }
  14. angle++;
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. demonstration : http://i.imgur.com/Q77CsTz.gif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement