illucc / Kontraption

A addon for the Minecraft mod Mekanism that focuses on adding airships that are inspired by various space exploration/combat games (Space Engineers, Elite: Dangerous, etc)
Apache License 2.0
19 stars 10 forks source link

Gyros snap the ship to face north on loading into a world #42

Open Cosmos616 opened 1 month ago

Cosmos616 commented 1 month ago

Description If you have an already assembled ship and log out and log back in, the gyro appears to snap to its "default position" which looks like north.

To Reproduce

  1. build a ship with powered gyros onboard
  2. log out
  3. log in
  4. see your ship spin around to north

Expected behavior The ship should remain in the position it was in when logging out and back in. (maybe get the ship's facing direction when logging in and use that to direct the gyros?)

Versions

WaterOtter86 commented 1 month ago

That's. . . Interesting bug. Will look into it, considering how gyro works i didn't even think it's possible is it getting weird target rotation maybe? Can ya send a video and version of kontraption you are using?

illucc commented 1 month ago

its prolly not storing the rotation between reloads

WaterOtter86 commented 1 month ago

It's not, but it's supposed to get it from ship itself