przemykomo / simple-planes

Planes mod for minecraft forge.
GNU Lesser General Public License v3.0
27 stars 28 forks source link

Idea how to fix incorrect rotation of player eye. #181

Open KostromDan opened 1 year ago

KostromDan commented 1 year ago

Somethere you said that you have no idea how to fix this. Look how implemented same aspect in do a barrel roll mod. https://www.curseforge.com/minecraft/mc-mods/do-a-barrel-roll It rotates player eye same way but rotation works absolutely correct. image

KostromDan commented 1 year ago

Also an idea: add the airplane management mode using the mouse and AD keys. By analogy with this mod. It would be very convenient.

KostromDan commented 1 year ago

Due to the fact that the mod has a GNU General Public License v3.0, you just can copy their code, slightly tweaking the coefficients. This would fix all the bugs related to the incorrect processing of the movements described by me in the previous issues. The mod has an understatingly more realistic and less buggy airplane engine.

przemykomo commented 1 year ago

Awesome, I'll check it out.

przemykomo commented 1 year ago

From a quick look it seems like the mod is working with player rotation values directly, while planes use quaternions internally and only apply them for rendering the player. It would require quite a bit of rewriting, which I might try in the future.