BodyGyro in a single axis

I am currently trying to create a naval game which explores ship movement. However I am having issues with the orientation of the ship itself.

As you can see here (https://www.youtube.com/watch?v=CiM-Blh4v2c) there is a very basic ship system in place - however as seen in this video the ships have a tendency of falling over (https://www.youtube.com/watch?v=teXQBdakfS0).

I have experimented with BodyGyro’s which have worked quite well, however of course they aren’t allowing for any rotation whatsoever making the ships unable to turn. I was wondering whether was a way in which a BodyGyro can only affect a single axis? For example, you can rotate an object horizontaly but not vertically?

Any help would be much appreciated.
Thanks,
-Tom

The MaxTorque property changes how much work the bodygyro will do get its goal
image
For example in this image, The BodyGyro will do 0 work in maintaining the Y orientation, while doing work for X and Z.

Basically, you need to set one or more of the axis (idk which one, do some trial and error lol) to 0 which should be the axis where you want the ship to turn.

1 Like