Jelajahi Sumber

:wrench: Quickfix finished signal conflict

Now particles tell when they are finished. But I chose to quickfix for
now.
DricomDragon 2 minggu lalu
induk
melakukan
eb5a530148

+ 1 - 1
godot/component/entity/vehicles/plane/tiny_plane.tscn

@@ -18,8 +18,8 @@ collision_layer = 8
 collision_mask = 3
 input_ray_pickable = false
 mass = 750.0
-max_contacts_reported = 1
 contact_monitor = true
+max_contacts_reported = 1
 script = ExtResource("1_tviov")
 
 [node name="TinyPlane" parent="." instance=ExtResource("2_60pln")]

+ 2 - 1
godot/effect/crash/crash.tscn

@@ -12,9 +12,9 @@ point_count = 2
 curve = SubResource("Curve_2ymgo")
 
 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fpdqd"]
+angle_max = 360.0
 spread = 180.0
 initial_velocity_max = 10.0
-angle_max = 360.0
 scale_curve = SubResource("CurveTexture_si023")
 color = Color(1, 1, 0.372549, 1)
 
@@ -37,4 +37,5 @@ draw_pass_1 = SubResource("SphereMesh_f2rrx")
 script = ExtResource("3_mi21g")
 
 [connection signal="finished" from="Noise" to="." method="_on_noise_finished"]
+[connection signal="custom_finished" from="Splash" to="." method="_on_splash_finished"]
 [connection signal="finished" from="Splash" to="." method="_on_splash_finished"]

+ 2 - 2
godot/effect/crash/splash_gfx.gd

@@ -1,7 +1,7 @@
 extends GPUParticles3D
 
 
-signal finished
+signal custom_finished # todo : use built-in one
 
 
 func _ready() -> void:
@@ -11,4 +11,4 @@ func _ready() -> void:
 
 
 func _on_emission_ended() -> void:
-	finished.emit()
+	custom_finished.emit()