@name anim/projects/examples/skeleton_dragon/data
@persist [HN CN] [HT CT]:table


#----------------------
#-- GTable Setup
local ID = "Skeleton_Dragon"

XGT = gTable("_holocore", 0)

XGT[ID, table] = table(
    "Clips" = table(),
    "Holos" = table()
)

HT = XGT[ID, table]["Holos", table]
CT = XGT[ID, table]["Clips", table]


#----------------------
#-- Bones
local Skeleton = 1

local Scale = vec(12,12,12)/2
local Color = vec4(255,255,255,Skeleton*255)
local Material = ""
local Model = ""

local Vec = vec()
local Ang = ang()


#----------------------
#-- Base
HN++,HT[HN,table] = table(1,999,1,Vec,Ang,Scale,Model,Material,Color)

#----------------------
#-- Body Front
HN++,HT[HN,table] = table(2,1,1,vec(10,0,0),Ang,Scale,Model,Material,Color)

#----------------------
#-- Body Rear
HN++,HT[HN,table] = table(3,1,1,vec(-10,0,0),Ang,Scale,Model,Material,Color)

#----------------------
#-- Feet
HN++,HT[HN,table] = table(4,2,1,vec(20,15,-25),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(5,2,1,vec(20,-15,-25),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(6,3,1,vec(-20,15,-25),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(7,3,1,vec(-20,-15,-25),Ang,Scale,Model,Material,Color)

#----------------------
#-- Tail
HN++,HT[HN,table] = table(8,3,1,vec(-30,0,0),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(9,8,1,vec(-10,0,0),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(10,9,1,vec(-10,0,0),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(11,10,1,vec(-10,0,0),Ang,Scale,Model,Material,Color)

#----------------------
#-- Neck/Head
HN++,HT[HN,table] = table(12,2,1,vec(12,0,3),Ang,Scale,Model,Material,Color)
HN++,HT[HN,table] = table(13,12,1,vec(5,0,5),Ang,Scale+2,Model,Material,Color)



selfDestruct()

