diff --git a/Orbitersdk/samples/ProjectApollo/src_lm/LM_DescentStageResource.h b/Orbitersdk/samples/ProjectApollo/src_lm/LM_DescentStageResource.h index b88b337a46..b4797eaf17 100644 --- a/Orbitersdk/samples/ProjectApollo/src_lm/LM_DescentStageResource.h +++ b/Orbitersdk/samples/ProjectApollo/src_lm/LM_DescentStageResource.h @@ -63,3 +63,4 @@ #define DS_GRP_SupportStruts2Aft 47 #define DS_GRP_SupportStruts2Left 48 #define DS_GRP_SupportStruts2Right 49 +#define DS_GRP_Plaque 50 diff --git a/Orbitersdk/samples/ProjectApollo/src_lm/Sat5LMDSC.cpp b/Orbitersdk/samples/ProjectApollo/src_lm/Sat5LMDSC.cpp index eca0daf2dd..5bee6a60d9 100644 --- a/Orbitersdk/samples/ProjectApollo/src_lm/Sat5LMDSC.cpp +++ b/Orbitersdk/samples/ProjectApollo/src_lm/Sat5LMDSC.cpp @@ -222,6 +222,7 @@ void Sat5LMDSC::DefineAnimations(UINT idx) { static UINT meshgroup_Struts[4] = { DS_GRP_SupportStruts2, DS_GRP_SupportStruts2Aft, DS_GRP_SupportStruts2Left, DS_GRP_SupportStruts2Right }; static UINT meshgroup_Locks[4] = { DS_GRP_Downlock, DS_GRP_DownlockAft, DS_GRP_DownlockLeft, DS_GRP_DownlockRight }; static UINT meshgroup_Ladder = DS_GRP_Ladder; + static UINT meshgroup_Plaque = DS_GRP_Plaque; static UINT meshgroup_Probes1[3] = { DS_GRP_Probes1Aft, DS_GRP_Probes1Left, DS_GRP_Probes1Right }; static UINT meshgroup_Probes2[3] = { DS_GRP_Probes2Aft, DS_GRP_Probes2Left, DS_GRP_Probes2Right }; @@ -250,6 +251,9 @@ void Sat5LMDSC::DefineAnimations(UINT idx) { static MGROUP_ROTATE mgt_Ladder(idx, &meshgroup_Ladder, 1, DES_LEG_PIVOT[0], DES_LEG_AXIS[0], (float)(45 * RAD)); AddAnimationComponent(anim_Gear, 0.0, 1, &mgt_Ladder); + static MGROUP_ROTATE mgt_Plaque(idx, &meshgroup_Plaque, 1, DES_LEG_PIVOT[0], DES_LEG_AXIS[0], (float)(45 * RAD)); + AddAnimationComponent(anim_Gear, 0.0, 1, &mgt_Plaque); + SetAnimation(anim_Gear, 0.0); } diff --git a/Orbitersdk/samples/ProjectApollo/src_lm/lm_eds.cpp b/Orbitersdk/samples/ProjectApollo/src_lm/lm_eds.cpp index a51c4299dd..b341031cea 100644 --- a/Orbitersdk/samples/ProjectApollo/src_lm/lm_eds.cpp +++ b/Orbitersdk/samples/ProjectApollo/src_lm/lm_eds.cpp @@ -389,6 +389,7 @@ void LEM_EDS::DefineAnimations(UINT idx) { static UINT meshgroup_Struts[4] = { DS_GRP_SupportStruts2, DS_GRP_SupportStruts2Aft, DS_GRP_SupportStruts2Left, DS_GRP_SupportStruts2Right }; static UINT meshgroup_Locks[4] = { DS_GRP_Downlock, DS_GRP_DownlockAft, DS_GRP_DownlockLeft, DS_GRP_DownlockRight }; static UINT meshgroup_Ladder = DS_GRP_Ladder; + static UINT meshgroup_Plaque = DS_GRP_Plaque; static UINT meshgroup_Probes1[3] = { DS_GRP_Probes1Aft, DS_GRP_Probes1Left, DS_GRP_Probes1Right }; static UINT meshgroup_Probes2[3] = { DS_GRP_Probes2Aft, DS_GRP_Probes2Left, DS_GRP_Probes2Right }; @@ -417,6 +418,9 @@ void LEM_EDS::DefineAnimations(UINT idx) { static MGROUP_ROTATE mgt_Ladder(idx, &meshgroup_Ladder, 1, DES_LEG_PIVOT[0], DES_LEG_AXIS[0], (float)(45 * RAD)); lem->AddAnimationComponent(anim_Gear, 0.0, 1, &mgt_Ladder); + static MGROUP_ROTATE mgt_Plaque(idx, &meshgroup_Plaque, 1, DES_LEG_PIVOT[0], DES_LEG_AXIS[0], (float)(45 * RAD)); + lem->AddAnimationComponent(anim_Gear, 0.0, 1, &mgt_Plaque); + lem->SetAnimation(anim_Gear, gear_state.State()); }