generated from Persson-dev/Godot-Xmake
Bullets Colliding and Disappearing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://do601jl7p1u22"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://do601jl7p1u22"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ibwn0"]
|
||||
size = Vector3(0.05, 0.05, 1)
|
||||
@@ -9,7 +9,23 @@ emission_enabled = true
|
||||
emission = Color(0.568627, 1, 0.313726, 1)
|
||||
emission_energy_multiplier = 5.0
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_618v8"]
|
||||
direction = Vector3(0, 0, 1)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 5.0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gn2fy"]
|
||||
albedo_color = Color(1, 1, 0.443137, 1)
|
||||
emission_enabled = true
|
||||
emission = Color(0.568627, 1, 0.313726, 1)
|
||||
emission_energy_multiplier = 8.0
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_5un5e"]
|
||||
material = SubResource("StandardMaterial3D_gn2fy")
|
||||
size = Vector3(0.04, 0.04, 0.04)
|
||||
|
||||
[node name="Bullet" type="Bullet"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -52730.2)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_ibwn0")
|
||||
@@ -17,3 +33,19 @@ surface_material_override/0 = SubResource("StandardMaterial3D_2qdhl")
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -0.6)
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.7)
|
||||
emitting = false
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
visibility_aabb = AABB(-1.00001, -6.06334, -1.00001, 2.00002, 7.06267, 41.4102)
|
||||
process_material = SubResource("ParticleProcessMaterial_618v8")
|
||||
draw_pass_1 = SubResource("BoxMesh_5un5e")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user