local animations = {}
function animations.Trans_Third()
trans_Third = { -- transformation for third stage animation
type = "rotation", -- transformation type
mesh = 0, -- mesh index
grp = {0,1,2}, -- groups
ref = {x=0,y=0,z=0}, -- reference point
axis = {x=0,y=0,z=-1}, -- rotation axis
angle = 360*RAD -- rotation angle
}
animcomp_Third = oapi.create_animationcomponent(trans_Third)
anim_Third = vi:create_animation(0)
vi:add_animationcomponent(anim_Third,0,1,animcomp_Third)
end
function animations.Trans_Sat1()
trans_Base = { -- transformation for third stage animation
type = "rotation", -- transformation type
mesh = 0, -- mesh index
grp = {3,4,5,6,7,8,9,10,11}, -- groups
ref = {x=0,y=0,z=0}, -- reference point
axis = {x=0,y=0,z=-1}, -- rotation axis
angle = 360*RAD -- rotation angle
}
trans_Sat1 = { -- transformation for third stage animation
type = "rotation", -- transformation type
mesh = 1, -- mesh index
grp = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}, -- groups
ref = {x=0,y=0,z=0}, -- reference point
axis = {x=0,y=0,z=-1}, -- rotation axis
angle = 360*RAD -- rotation angle
}
animcomp_Base = oapi.create_animationcomponent(trans_Base)
animcomp_Sat1 = oapi.create_animationcomponent(trans_Sat1)
anim_Sat1 = vi:create_animation(0)
vi:add_animationcomponent(anim_Sat1,0,1,animcomp_Base)
vi:add_animationcomponent(anim_Sat1,0,1,animcomp_Sat1)
end
function animations.Trans_Sat2()
trans_Sat2 = { -- transformation for satellite animation
type = "rotation", -- transformation type
mesh = 1, -- mesh index
grp = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}, -- groups
ref = {x=0,y=0,z=0}, -- reference point
axis = {x=0,y=0,z=-1}, -- rotation axis
angle = 360*RAD -- rotation angle
}
animcomp_Sat2 = oapi.create_animationcomponent(trans_Sat2)
anim_Sat2 = vi:create_animation(0)
vi:add_animationcomponent(anim_Sat2,0,1,animcomp_Sat2)
end
return animations