Skip to content

Commit

Permalink
Merge pull request #1236 from TINYBOB1/Plaque
Browse files Browse the repository at this point in the history
Added Plaque meshgroup to landing gear animation
  • Loading branch information
indy91 authored May 26, 2024
2 parents 9b5e293 + 0591f44 commit 4ab6ef7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@
#define DS_GRP_SupportStruts2Aft 47
#define DS_GRP_SupportStruts2Left 48
#define DS_GRP_SupportStruts2Right 49
#define DS_GRP_Plaque 50
4 changes: 4 additions & 0 deletions Orbitersdk/samples/ProjectApollo/src_lm/Sat5LMDSC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down Expand Up @@ -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);
}

Expand Down
4 changes: 4 additions & 0 deletions Orbitersdk/samples/ProjectApollo/src_lm/lm_eds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit 4ab6ef7

Please sign in to comment.