main(doc,op) { var x = curpos.x-cursor.x; var y = curpos.z-cursor.z; curpos+=((sin(x/(bmultiply*2))+cos(y/(bmultiply*2)))*10*bscale)*curnorm; }