From 493e7369b71a74972e54d6151ccaf89f74deeac509b234460898d87ed7019051 Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 6 Jul 2026 17:51:15 -0500 Subject: [PATCH] changed dart hitbox and tweaked physics --- Scenes/Dart.tscn | 4 +++- Scenes/DartPhysics.gd | 2 +- Scenes/main.tscn | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Scenes/Dart.tscn b/Scenes/Dart.tscn index 9d50e61..2546d91 100644 --- a/Scenes/Dart.tscn +++ b/Scenes/Dart.tscn @@ -10,7 +10,9 @@ height = 2.3862305 [node name="Dart" type="Node3D" unique_id=367982453] [node name="RigidBody3D" type="RigidBody3D" parent="." unique_id=1993396351] +transform = Transform3D(1, 0, 0, 0, 1.0000001, 0, 0, 0, 1.0000001, 0, 0, 0) center_of_mass_mode = 1 +center_of_mass = Vector3(0, 0.9, 0) script = ExtResource("1_s1kro") angle_of_plane = -25.0 @@ -19,4 +21,4 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.10033989, 0) shape = SubResource("CapsuleShape3D_xxti7") [node name="Dart2" parent="RigidBody3D" unique_id=1655536183 instance=ExtResource("2_mlvfh")] -transform = Transform3D(0.4, 0, 0, 0, -0.4, 3.4969112e-08, 0, -3.4969112e-08, -0.4, 0, 1.609093, 0) +transform = Transform3D(0.4, 0, 0, 0, 0.39999995, 0, 0, 0, 0.39999995, 0, -1.4526575, 0.015561234) diff --git a/Scenes/DartPhysics.gd b/Scenes/DartPhysics.gd index f603f26..bb45578 100644 --- a/Scenes/DartPhysics.gd +++ b/Scenes/DartPhysics.gd @@ -23,7 +23,7 @@ func start_drag(camera: Camera3D, mouse_pos: Vector2, hit_point: Vector3): dragging = true # keep it physics-active — don't freeze - gravity_scale = 0.0 # optional: ignore gravity while held so it doesn't sag + gravity_scale = 1.0 # optional: ignore gravity while held so it doesn't sag linear_damp = 4.0 # optional: a bit of damping for stability while dragged #drag_plane = Plane(camera.global_transform.basis.z, hit_point) diff --git a/Scenes/main.tscn b/Scenes/main.tscn index 7ed59c8..298b94b 100644 --- a/Scenes/main.tscn +++ b/Scenes/main.tscn @@ -23,7 +23,7 @@ fov = 90.0 script = ExtResource("1_bo1nx") [node name="Dart" parent="." unique_id=367982453 instance=ExtResource("1_jjgbg")] -transform = Transform3D(1, 0, 0, 0, -0.999989, -0.0046914006, 0, 0.0046914006, -0.999989, 0, 4.3246593, 0) +transform = Transform3D(1, 0, 0, 0, 0.8363807, -0.5481493, 0, 0.5481492, 0.8363808, 0, 4.3246593, 0) [node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1891469178] transform = Transform3D(-0.789482, 0.24223976, -0.56394875, -0.56595325, 0.06825608, 0.821607, 0.23751883, 0.9678125, 0.083209395, -46.816067, 15.942318, -50.370865)