[gd_scene load_steps=7 format=3 uid="uid://q46fjntx43e2"] [ext_resource type="Script" uid="uid://crsltf0vxq1xd" path="res://scripts/straight_projectile.gd" id="1_straight"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1"] albedo_color = Color(1, 0.6, 0.2, 1) emission_enabled = true emission = Color(1, 0.4, 0, 1) emission_energy_multiplier = 3.0 [sub_resource type="SphereMesh" id="SphereMesh_1"] radius = 0.2 height = 0.6 [sub_resource type="SphereShape3D" id="SphereShape3D_1"] radius = 0.2 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_1"] direction = Vector3(0, 0, -1) initial_velocity_min = 2.0 initial_velocity_max = 4.0 gravity = Vector3(0, -2, 0) scale_min = 0.1 scale_max = 0.2 color = Color(1, 0.5, 0, 1) [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2"] direction = Vector3(0, 0, -1) initial_velocity_min = 1.0 initial_velocity_max = 2.0 gravity = Vector3(0, -1, 0) scale_min = 0.05 scale_max = 0.15 color = Color(1, 0.3, 0, 0.8) [node name="StraightProjectile" type="Area3D"] script = ExtResource("1_straight") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] material_override = SubResource("StandardMaterial3D_1") mesh = SubResource("SphereMesh_1") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("SphereShape3D_1") [node name="FireParticles" type="GPUParticles3D" parent="."] amount = 30 lifetime = 0.3 process_material = SubResource("ParticleProcessMaterial_1") draw_pass_1 = SubResource("SphereMesh_1") [node name="TrailParticles" type="GPUParticles3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.3) amount = 50 lifetime = 0.5 process_material = SubResource("ParticleProcessMaterial_2") draw_pass_1 = SubResource("SphereMesh_1")