diff options
Diffstat (limited to 'Ship.gd')
-rw-r--r-- | Ship.gd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |