|
| 1 | +[gd_scene load_steps=15 format=3 uid="uid://2r5wc1n0ybju"] |
| 2 | + |
| 3 | +[ext_resource type="Script" uid="uid://dohdjr8ilotkr" path="res://bullet.gd" id="1_v7oki"] |
| 4 | +[ext_resource type="Texture2D" uid="uid://b70s43gn8c3kx" path="res://spark_particle.png" id="2_v8qja"] |
| 5 | + |
| 6 | +[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_v8qja"] |
| 7 | +bounce = 0.61 |
| 8 | + |
| 9 | +[sub_resource type="Curve" id="Curve_t4vbm"] |
| 10 | +_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.02, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] |
| 11 | +point_count = 3 |
| 12 | + |
| 13 | +[sub_resource type="SphereShape3D" id="SphereShape3D_rtl8c"] |
| 14 | +radius = 0.2 |
| 15 | + |
| 16 | +[sub_resource type="Gradient" id="Gradient_v8qja"] |
| 17 | +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0) |
| 18 | + |
| 19 | +[sub_resource type="GradientTexture1D" id="GradientTexture1D_t4vbm"] |
| 20 | +gradient = SubResource("Gradient_v8qja") |
| 21 | + |
| 22 | +[sub_resource type="Curve" id="Curve_v8qja"] |
| 23 | +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] |
| 24 | +point_count = 2 |
| 25 | + |
| 26 | +[sub_resource type="CurveTexture" id="CurveTexture_t4vbm"] |
| 27 | +curve = SubResource("Curve_v8qja") |
| 28 | + |
| 29 | +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_v7oki"] |
| 30 | +direction = Vector3(0, 1, 0) |
| 31 | +initial_velocity_max = 1.0 |
| 32 | +gravity = Vector3(0, 1, 0) |
| 33 | +scale_min = 0.2 |
| 34 | +scale_curve = SubResource("CurveTexture_t4vbm") |
| 35 | +color_ramp = SubResource("GradientTexture1D_t4vbm") |
| 36 | + |
| 37 | +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t4vbm"] |
| 38 | +transparency = 1 |
| 39 | +blend_mode = 1 |
| 40 | +shading_mode = 0 |
| 41 | +vertex_color_use_as_albedo = true |
| 42 | +albedo_color = Color(2.33575, 3.29442, 3.29442, 1) |
| 43 | +albedo_texture = ExtResource("2_v8qja") |
| 44 | +texture_filter = 5 |
| 45 | + |
| 46 | +[sub_resource type="QuadMesh" id="QuadMesh_rtl8c"] |
| 47 | +material = SubResource("StandardMaterial3D_t4vbm") |
| 48 | +size = Vector2(0.2, 0.2) |
| 49 | + |
| 50 | +[sub_resource type="SphereMesh" id="SphereMesh_v7oki"] |
| 51 | +radial_segments = 24 |
| 52 | +rings = 12 |
| 53 | + |
| 54 | +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v7oki"] |
| 55 | +albedo_color = Color(0.431649, 0.57319, 0.501392, 1) |
| 56 | +metallic = 1.0 |
| 57 | + |
| 58 | +[node name="Bullet" type="RigidBody3D"] |
| 59 | +collision_layer = 2 |
| 60 | +physics_material_override = SubResource("PhysicsMaterial_v8qja") |
| 61 | +script = ExtResource("1_v7oki") |
| 62 | +scale_curve = SubResource("Curve_t4vbm") |
| 63 | + |
| 64 | +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] |
| 65 | +shape = SubResource("SphereShape3D_rtl8c") |
| 66 | + |
| 67 | +[node name="GPUParticles3D" type="GPUParticles3D" parent="."] |
| 68 | +amount = 64 |
| 69 | +transform_align = 1 |
| 70 | +process_material = SubResource("ParticleProcessMaterial_v7oki") |
| 71 | +draw_pass_1 = SubResource("QuadMesh_rtl8c") |
| 72 | + |
| 73 | +[node name="Scaler" type="Node3D" parent="."] |
| 74 | +transform = Transform3D(0.001, 0, 0, 0, 0.001, 0, 0, 0, 0.001, 0, 0, 0) |
| 75 | + |
| 76 | +[node name="MeshInstance3D" type="MeshInstance3D" parent="Scaler"] |
| 77 | +transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0) |
| 78 | +mesh = SubResource("SphereMesh_v7oki") |
| 79 | +skeleton = NodePath("../..") |
| 80 | +surface_material_override/0 = SubResource("StandardMaterial3D_v7oki") |
| 81 | + |
| 82 | +[node name="Timer" type="Timer" parent="."] |
| 83 | +wait_time = 5.0 |
| 84 | +autostart = true |
| 85 | + |
| 86 | +[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] |
0 commit comments