+1 vote

Hello all.

I had an idea in mind some time ago about making the game rocket league in Godot but then on water. I recently picked up that idea and started working it out.
I found some videos explaining how to program simple boat physics in Unity and I changed the code in that video to work in Godot.
Now, I have a cube which is floating on a mesh (and the mesh looks like water with little waves). I also coded some controls to move the boat around and rotate it just like you could in rocket league.

The problem I'm having is whenever i rotate the boat around an axis other than the y axis, it will rotate back to the position it started. My best guess is that it has to do with the order the scripts are run at (I have 4 Position3D nodes with a floating script which calculate how much force up the boat needs to get from their position according to the water.)

Here is the project: Google Drive Link

I hope anyone here could figure it out for me.

Godot version 3.4.4 Original Build
in Engine by (15 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.