|
| 1 | +[gd_scene load_steps=12 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_particle2.png" id="2_v8qja"] |
| 5 | + |
| 6 | +[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_v8qja"] |
| 7 | +bounce = 0.61 |
| 8 | + |
| 9 | +[sub_resource type="SphereShape3D" id="SphereShape3D_rtl8c"] |
| 10 | +radius = 0.2 |
| 11 | + |
| 12 | +[sub_resource type="Gradient" id="Gradient_v8qja"] |
| 13 | + |
| 14 | +[sub_resource type="GradientTexture1D" id="GradientTexture1D_t4vbm"] |
| 15 | +gradient = SubResource("Gradient_v8qja") |
| 16 | + |
| 17 | +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_v7oki"] |
| 18 | +direction = Vector3(0, 1, 0) |
| 19 | +initial_velocity_max = 1.0 |
| 20 | +gravity = Vector3(0, 1, 0) |
| 21 | +scale_min = 0.19999999 |
| 22 | +color_ramp = SubResource("GradientTexture1D_t4vbm") |
| 23 | + |
| 24 | +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t4vbm"] |
| 25 | +transparency = 1 |
| 26 | +albedo_texture = ExtResource("2_v8qja") |
| 27 | + |
| 28 | +[sub_resource type="QuadMesh" id="QuadMesh_rtl8c"] |
| 29 | +material = SubResource("StandardMaterial3D_t4vbm") |
| 30 | +size = Vector2(0.2, 0.2) |
| 31 | + |
| 32 | +[sub_resource type="SphereMesh" id="SphereMesh_v7oki"] |
| 33 | + |
| 34 | +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v7oki"] |
| 35 | +albedo_color = Color(0.43164876, 0.5731902, 0.5013925, 1) |
| 36 | +metallic = 1.0 |
| 37 | + |
| 38 | +[node name="Bullet" type="RigidBody3D"] |
| 39 | +physics_material_override = SubResource("PhysicsMaterial_v8qja") |
| 40 | +script = ExtResource("1_v7oki") |
| 41 | + |
| 42 | +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] |
| 43 | +shape = SubResource("SphereShape3D_rtl8c") |
| 44 | + |
| 45 | +[node name="GPUParticles3D" type="GPUParticles3D" parent="."] |
| 46 | +transform_align = 1 |
| 47 | +process_material = SubResource("ParticleProcessMaterial_v7oki") |
| 48 | +draw_pass_1 = SubResource("QuadMesh_rtl8c") |
| 49 | + |
| 50 | +[node name="Scaler" type="Node3D" parent="."] |
| 51 | +transform = Transform3D(0.001, 0, 0, 0, 0.001, 0, 0, 0, 0.001, 0, 0, 0) |
| 52 | + |
| 53 | +[node name="MeshInstance3D" type="MeshInstance3D" parent="Scaler"] |
| 54 | +transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0) |
| 55 | +mesh = SubResource("SphereMesh_v7oki") |
| 56 | +skeleton = NodePath("../..") |
| 57 | +surface_material_override/0 = SubResource("StandardMaterial3D_v7oki") |
0 commit comments