--funcion para andamios
--porcentaje de size
--recibe el centro X,Y,Z
--los andamios son siempre verticales y horizontales

fn AndamioR PosX PosY PosZ Size AX AY AZ=
(
	
	S=Size/15 as float
	
	--base
	Mybox = box length:S width:Size height:S
	Mybox.pos=[0,0+Size/2,0]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:S width:Size height:S
	Mybox.pos=[0,-Size/2,0]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:Size width:S height:S
	Mybox.pos=[0+Size/2,0,0]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:Size width:S height:S
	Mybox.pos=[0-Size/2,0,0]
	Mybox.material = meditMaterials[13]
	
	--techo
	Mybox = box length:S width:Size height:S
	Mybox.pos=[0,0+Size/2,0+Size]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:S width:Size height:S
	Mybox.pos=[0,0-Size/2,0+Size]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:Size width:S height:S
	Mybox.pos=[0+Size/2,0,0+Size]
	Mybox.material = meditMaterials[13]
	
	Mybox = box length:Size width:S height:S
	Mybox.pos=[0-Size/2,0,0+Size]
	Mybox.material = meditMaterials[13]
	
	--palos verticales
	Mybox = box length:S width:S height:Size
	Mybox.pos=[0-Size/2,0-Size/2,0]
	Mybox.material = meditMaterials[13]
	Mybox = box length:S width:S height:Size
	Mybox.pos=[0-Size/2,0+Size/2,0]
	Mybox.material = meditMaterials[13]
	Mybox = box length:S width:S height:Size
	Mybox.pos=[0+Size/2,0-Size/2,0]
	Mybox.material = meditMaterials[13]
	Mybox = box length:S width:S height:Size
	Mybox.pos=[0+Size/2,0+Size/2,0]
	Mybox.material = meditMaterials[13]
	
	--agrupando
	group $box* name:"boxes"
	$boxes.pivot=[0,0,Size/2]
	$boxes.rotation.x_rotation=AX
	$boxes.rotation.y_rotation=AY
	$boxes.rotation.z_rotation=AZ
	move $boxes [PosX,PosY,PosZ]
	$boxes.name="XXX"
)




