Space Engineers

Space Engineers

Fast Artificial Horizon 30 FPS!
Merii 4. nov. 2020 kl. 14:19
Bug report
Hi.

There are 2 minor bugs in the the vertical speed indicator and the pull up warning. The following lines both use a divisor that's suited for 6 FPS, but is 5x incorrect for 30.

Vertical Speed display, line 280:

Actual:
var diffPerSec = (seaLevelAltitude - m_lastSeaLevelAlt) * 6;

Expected:
var diffPerSec = (seaLevelAltitude - m_lastSeaLevelAlt) * 30;

Pull up indicator, line 291:

Actual:
if (hitInfo != null && m_tickCounter >= 0 && m_tickCounter % 100 > 2)

Expected:
if (hitInfo != null && m_tickCounter >= 0 && m_tickCounter % 100 > 10)

Those are the two easy bugs.

The following is more of a feature/realism request and isn't keeping with "looking exactly like the builtin Artificial Horizon", but: If you go by real artificial horizons, there shouldn't be any "backgrund" above the horizon line, and when you go through 90 degrees down, the grid should persist until you're level and upside down. See this example[i.imgur.com] for reference.

Regardless of how you feel about the feature request above, there is a slight display bug where the BG texture isn't fully drawn when you get to 90 degrees nose up/down. See this screenshot[i.imgur.com]

I'm not familiar enough with the sprites API/math to fix the last two, or I'd suggest code as well.
< >
Viser 1-2 af 2 kommentarer
Gwindalmir  [udvikler] 27. nov. 2020 kl. 20:07 
Thanks, I've fixed the two bugs in today's release.
Merii 27. nov. 2020 kl. 23:46 
Oprindeligt skrevet af Gwindalmir:
Thanks, I've fixed the two bugs in today's release.

Thank you!
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50