Advertisement
Guest User

Pokeball

a guest
Dec 13th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. r = 40
  2. h= 0.25
  3. g = 0.15
  4. dim = []
  5. len = []
  6. pul = []
  7. ring = []
  8. ring2 = []
  9. for i in [0...100] by 1
  10. len.push(i * 1)
  11.  
  12. for i in [0...100] by 1
  13. dim.push(Math.pow((Math.pow(r,2)-Math.pow(i,2)),0.5))
  14.  
  15. for i in [0...100] by 1
  16. pul.push(0)
  17.  
  18. for i in [0...5] by 1
  19. ring.push(i * 1)
  20.  
  21. for i in [0...100] by 1
  22. ring2.push(Math.pow((Math.pow(r,2)-Math.pow(i,2))*1.03,0.5))
  23.  
  24. return model =
  25. name: 'TrueBall'
  26. level: 3
  27. bodies:
  28. section1:
  29. section_segments: 50
  30. offset:
  31. x: 0
  32. y: 0
  33. z: 0
  34. position:
  35. x: pul
  36. y: len
  37. z: pul
  38. width: dim
  39. height: dim
  40. texture: [30]
  41. section3:
  42. section_segments: 50
  43. offset:
  44. x: 0
  45. y: 0
  46. z: 0
  47. position:
  48. x: pul
  49. y: len
  50. z: pul
  51. width: dim
  52. height: dim
  53. texture: [1]
  54. angle: 180
  55. ring1:
  56. section_segments: 100
  57. offset:
  58. x: 0
  59. y: 0
  60. z: 0.5
  61. position:
  62. x: pul
  63. y: ring
  64. z: pul
  65. width: ring2
  66. height: ring2
  67. texture: [5]
  68. angle: 0
  69. ring2:
  70. section_segments: 100
  71. offset:
  72. x: 0
  73. y: 0
  74. z: 0.5
  75. position:
  76. x: pul
  77. y: ring
  78. z: pul
  79. width: ring2
  80. height: ring2
  81. texture: [5]
  82. angle: 180
  83. level1:
  84. section_segments: 64
  85. offset:
  86. x: 0
  87. y: 0
  88. z: 39
  89. position:
  90. x: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
  91. y: [-17*h*2,-16.815*h*2,-16*h*2,-15.12*h*2,-13.24*h*2,-11.36*h*2,-9.48*h*2,-7.5*h*2,-5.46*h*2,-3.838*h*2,-1.878*h*2,0,1.878*h*2,3.828*h*2,5.46*h*2,7.6*h*2,9.48*h*2,11.36*h*2,13.24*h*2,15.118*h*2,16*h*2,16.815*h*2,17*h*2]
  92. z: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
  93. width: [0,5*h,11.49*h,15.55*h,21.326*h,25.294*h,28.222*h,30.414*h,32.198*h,33.122*h,33.792*h,34*h,33.792*h,33.122*h,32.198*h,30.414*h,28.222*h,25.294*h,21.326*h,15.55*h,11.49*h,5*h,0]
  94. height: [0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0]
  95. texture:[5]
  96. propeller: false
  97. level2:
  98. section_segments: 64
  99. offset:
  100. x: 0
  101. y: 0
  102. z: 40
  103. position:
  104. x: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
  105. y: [-17*g*2,-16.815*g*2,-16*g*2,-15.12*g*2,-13.24*g*2,-11.36*g*2,-9.48*g*2,-7.5*g*2,-5.46*g*2,-3.838*g*2,-1.878*g*2,0,1.878*g*2,3.828*g*2,5.46*g*2,7.6*g*2,9.48*g*2,11.36*g*2,13.24*g*2,15.118*g*2,16*g*2,16.815*g*2,17*g*2]
  106. z: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
  107. width: [0,5*g,11.49*g,15.55*g,21.326*g,25.294*g,28.222*g,30.414*g,32.198*g,33.122*g,33.792*g,34*g,33.792*g,33.122*g,32.198*g,30.414*g,28.222*g,25.294*g,21.326*g,15.55*g,11.49*g,5*g,0]
  108. height: [0,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0]
  109. texture:[1]
  110. propeller: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement