@name For da tox
@inputs 
@outputs 
@persist Squares I Data:table Props:array
@trigger 
interval(500)

Chip = entity()

if (first()) {
    Data = table(
        array(#Torus
            "hq_torus_thin"
            ,vec(0,0,0)
            ,ang(0,0,0)
            ,vec(255,0,0)
            ,vec(2.7,2.7,1)
        )
    )
        
    Squares = 12
    ThrusterDist = 10
    for (N = 0,Squares/2) {
        for (I=-1,1,2) {
            Data:pushArray(array(
                "square"
                ,vec(ThrusterDist*I,N*6-15,ThrusterDist)
                ,ang(0,I,0)
                ,vec(0,0,255)
                ,vec(0.1,0.1,0.1)
            ))
        }
    }
        
    for (N = 1,Squares+2) {
        local R = Data[N,array]
        holoCreate(N)
        holoModel(N,R[1,string])
        holoPos(N,Chip:toWorld(R[2,vector]))
        holoAng(N,Chip:toWorld(R[3,angle]))
        holoColor(N,R[4,vector])
        holoScale(N,R[5,vector])
        holoAlpha(N,200)
        holoParent(N,Chip)
    }
}
