Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]   Go Down

Author Topic: Some recent tweaking  (Read 671 times)

0 Members and 1 Guest are viewing this topic.


  • Modder
  • member
  • Offline Offline
  • Posts: 930
  • Keep calm and run away
Re: Some recent tweaking
« Reply #12 on: December 04, 2019, 02:08:10 AM »

Exactly the kind of tweaks I like, thank you!


  • Modder
  • member
  • Offline Offline
  • Posts: 1385
Re: Some recent tweaking
« Reply #13 on: Today at 12:18:38 AM »

Another problem I was aware of several years ago, and only just now thought to correct in the CockpitA6M2.class. It's been around from the start, and is still present up to 4.12.2 at least.

And it's present also in other Zero cockpit classes, which I'll tackle shortly...

Code: [Select]
/* mesh.chunkSetAngles("Z_Horison1c", 0.0F, cvt(w.z, -0.23562F, 0.23562F, 30.0F, -30.0F), 0.0F);  //WRONG!!!!!  */
mesh.chunkSetAngles("Z_Horison1c", 0.0F, -fm.Or.getKren(), 0.0F);

The first line in the code snippet above is the stock mistake, and treats the bank angle caret on the artificial horizon *exactly* like the the turn rate needle on the turn/slip gauge. So very wrong.

The correct treatment is on the following line, which uses the bank angle value from the FM.
Pages: 1 [2]   Go Up

Page created in 0.75 seconds with 27 queries.