SHARE
TWEET

Untitled

a guest Aug 8th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. multiplyArray = (arr, m) ->
  2.   k = [];
  3.   for i in [0..arr.length]
  4.     k.push(arr[i]*m)
  5.   return k;
  6.  
  7. ringGen = (xx, yy, zz, segments, length, width, thick, vert, tx, angle) ->
  8.   return k =
  9.     section_segments: segments
  10.     offset:
  11.       x: xx
  12.       y: yy
  13.       z: zz
  14.     position:
  15.       x: [0,0,0,0,0,0,0,0,0,0,0,0,0]
  16.       y: multiplyArray([0,0.5,1,2.25,3.5,4,4.5,4,3.5,2.25,1,0.5,0], thick)
  17.       z: [0,0,0,0,0,0,0,0,0,0,0,0,0]
  18.     width: [width,width+1*thick,width+2*thick,width+2.5*thick,width+2*thick,width+1*thick,width,width-1*thick,width-2*thick,width-2.5*thick,width-2*thick,width-1*thick,width]
  19.     height: [length,length+1*thick,length+2*thick,length+2.5*thick,length+2*thick,length+1*thick,length,length-1*thick,length-2*thick,length-2.5*thick,length-2*thick,length-1*thick,length]
  20.     vertical: vert
  21.     texture: [tx]
  22.     angle: angle
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top