[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] Atlantis::DefineAnimations ([/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]ANIMATIONCOMPONENT_HANDLE parentL, parentR;[/SIZE]
[SIZE=2]UINT midx = 1; [/SIZE][SIZE=2][COLOR=#008000]// mesh index for all external animations[/COLOR][/SIZE]
[SIZE=2]UINT vidx = 2; [/SIZE][SIZE=2][COLOR=#008000]// mesh index for all VC animations[/COLOR][/SIZE]
[SIZE=2]UINT ridx = 3; [/SIZE][SIZE=2][COLOR=#008000]// mesh index for all RMS animations[/COLOR][/SIZE]
[SIZE=2][COLOR=#008000]// ***** 1. Cargo door and radiator animations *****[/COLOR][/SIZE]
[SIZE=2][COLOR=#008000]// DaveS edit: Re-did animations to work with Donamy's new orbiter mesh[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] UINT RCargoDoorGrp[3] = {GRP_CARGODOOROUTR,GRP_CARGODOORINR,GRP_RADIATORBR};[/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] MGROUP_ROTATE RCargoDoor (midx, RCargoDoorGrp, 3,[/SIZE]
[SIZE=2]_V(2.82, 1.39, 0.0), _V(0,0,1), ([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2])(-175.5*RAD));[/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] UINT LCargoDoorGrp[3] = {GRP_CARGODOOROUTL,GRP_CARGODOORINL,GRP_RADIATORBL};[/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] MGROUP_ROTATE LCargoDoor (midx, LCargoDoorGrp, 3,[/SIZE]
[SIZE=2]_V(-2.80, 1.39, 0.0), _V(0,0,1), ([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2])(175.5*RAD));[/SIZE]
[SIZE=2]anim_door = CreateAnimation (0);[/SIZE]
[SIZE=2]parentR = AddAnimationComponent (anim_door, 0.0, 0.4632, &RCargoDoor);[/SIZE]
[SIZE=2]parentL = AddAnimationComponent (anim_door, 0.5368, 1.0, &LCargoDoor);[/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] UINT RRadiatorGrp[1] = {GRP_RADIATORFR};[/SIZE]
[SIZE=2]RRadiator = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] MGROUP_ROTATE (midx, RRadiatorGrp, 1,[/SIZE]
[SIZE=2]_V(2.71, 1.7, 0.0), _V(0,0,1), ([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2])(35.5*RAD));[/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2] UINT LRadiatorGrp[1] = {GRP_RADIATORFL};[/SIZE]
[SIZE=2]LRadiator = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] MGROUP_ROTATE (midx, LRadiatorGrp, 1,[/SIZE]
[SIZE=2]_V(-2.71, 1.7, 0.0), _V(0,0,1), ([/SIZE][SIZE=2][COLOR=#0000ff]float[/COLOR][/SIZE][SIZE=2])(-35.5*RAD));[/SIZE]
[SIZE=2]anim_rad = CreateAnimation (0);[/SIZE]
[SIZE=2]AddAnimationComponent (anim_rad, 0, 1, RRadiator, parentR);[/SIZE]
[SIZE=2]AddAnimationComponent (anim_rad, 0, 1, LRadiator, parentL);[/SIZE]