zolantris / ValheimMods

Collection of ValheimMods, ValheimRaft (originally created by Sarcen) and a few other upcoming mods including a vehicles mod.
GNU General Public License v3.0
12 stars 5 forks source link

[v1.6.12] console command raftcreative will turn the ship north instead of maintaining current rotation #53

Open JasonLandbridge opened 8 months ago

JasonLandbridge commented 8 months ago

What happened?

Hi there, starting from v1.6.12 whenever I do the console command raftcreative the ship floats as intended but the rotation becomes perfectly north. As in, the current rotation of the ship is not taken into account anymore when the command is executed. When I install v1.6.10 this will work correctly again, so something broke in the latest version.

It seems as if the default rotation 0 happens to be north, which makes me think the rotation is not taken into account anymore.

Steps to reproduce

  1. Have a ship
  2. Rotate the ship to south
  3. Execute console command raftcreative
  4. See that the ship floats but is rotated to north

Log outputs

No logs

Environment

OS:
- **OS**: Arch Linux
- **Graphics**: Vulkan (I think)
Mods:
- **BepInEx**: 5.4.2202
- Jotunn 2.15.2
- **ValheimRAFT**: 1.6.12
zolantris commented 8 months ago

I'll look at it. The raft must have its rotation zeroed to be flat for the y axis. Wonder if I just messed up on the specific axis of rotation.

The idea was to only rotate the axis that makes the ship tilt but I think y might be the birds eye view axis.