changed dart hitbox and tweaked physics
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user