summaryrefslogtreecommitdiffstats
path: root/Ship.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Ship.gd')
-rw-r--r--Ship.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ship.gd b/Ship.gd
index feb5ad2..db200bd 100644
--- a/Ship.gd
+++ b/Ship.gd
@@ -1,4 +1,4 @@
-extends RigidBody
+extends BuoyantBody
export var ang_acceleration = 240.0
@@ -29,4 +29,4 @@ func _input(event):
func _integrate_forces(_state):
var stick = Input.get_axis("ship_right","ship_left")
if stick != 0.0:
- self.add_torque(Vector3.UP*stick*ang_acceleration)
+ self.add_torque(Vector3.UP*stick*ang_acceleration*self.mass)