From f7ec57998a1c3d0cf91c1fb017fd5a91bb1e0b96 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sun, 9 Oct 2022 04:45:45 -0400 Subject: Rework Buoyancy physics Simplify creating a buoyant object to just extending a class and setting the water plane. Implement a new buoyancy estimation that should be a bit more accurate. --- project.godot | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'project.godot') diff --git a/project.godot b/project.godot index 42f0e5f..1f86ed2 100644 --- a/project.godot +++ b/project.godot @@ -9,6 +9,11 @@ config_version=4 _global_script_classes=[ { +"base": "RigidBody", +"class": "BuoyantBody", +"language": "GDScript", +"path": "res://water/BuoyantBody.gd" +}, { "base": "Monument", "class": "DockMonument", "language": "GDScript", @@ -30,6 +35,7 @@ _global_script_classes=[ { "path": "res://world/monuments/lighthouse/lighthouseMonument.gd" } ] _global_script_class_icons={ +"BuoyantBody": "", "DockMonument": "", "Monument": "", "Wave": "", -- cgit v1.2.3