@CircularArrangement
--track0:Axis,0,2,1
--track1:Facing,0,2,0
--track2:Radius,0,1000,200
--track3:Spin,-3600,3600,0
jiku=obj.track0
dir=obj.track1
r=obj.track2
rot=obj.track3
if(jiku==0) then
  obj.oy = r * math.sin(math.pi/180*rot)
  obj.oz= - r * math.cos(math.pi/180*rot)
  if(dir==1) then
    obj.rx=rot
  elseif(dir==2) then
    obj.rx=rot+180
  end
elseif(jiku==1) then
  obj.ox = -r * math.sin(math.pi/180*rot)
  obj.oz = -r * math.cos(math.pi/180*rot)
  if(dir==1) then
    obj.ry=rot
  elseif(dir==2) then
    obj.ry=rot+180
  end
else
  obj.ox = r * math.sin(math.pi/180*rot)
  obj.oy=  -r * math.cos(math.pi/180*rot)
  if(dir==1) then
    obj.rz=rot
  elseif(dir==2) then
    obj.rz=rot+180
  end
end








