added LaserBeam with Particle and Sound
parent
575ba2bf5d
commit
8cde01c187
@ -0,0 +1,13 @@
|
||||
[gd_resource type="CapsuleMesh" load_steps=2 format=3 uid="uid://yydtguqwa6us"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ig000"]
|
||||
emission_enabled = true
|
||||
emission = Color(0.792157, 0.85098, 0, 1)
|
||||
emission_energy_multiplier = 10.0
|
||||
|
||||
[resource]
|
||||
material = SubResource("StandardMaterial3D_ig000")
|
||||
custom_aabb = AABB(1, 1, 100, 1, 1, 100)
|
||||
height = 5.0
|
||||
radial_segments = 32
|
||||
rings = 4
|
||||
@ -0,0 +1,23 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://jsqnryvk0qes"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_h0hv8"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_i2vsr"]
|
||||
curve = SubResource("Curve_h0hv8")
|
||||
|
||||
[resource]
|
||||
particle_flag_align_y = true
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 1.0
|
||||
initial_velocity_min = 10.0
|
||||
initial_velocity_max = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 0.05
|
||||
scale_max = 0.05
|
||||
scale_curve = SubResource("CurveTexture_i2vsr")
|
||||
collision_mode = 1
|
||||
collision_friction = 0.5
|
||||
collision_bounce = 0.5
|
||||
collision_use_scale = true
|
||||
@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ck31g3hvggoh"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://jsqnryvk0qes" path="res://Material/LaserBeamProcess.tres" id="1_6pmub"]
|
||||
[ext_resource type="CapsuleMesh" uid="uid://yydtguqwa6us" path="res://Material/LaserBeamMaterial.tres" id="2_tfobi"]
|
||||
|
||||
[node name="LaserBeam" type="Node3D"]
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
amount = 1
|
||||
one_shot = true
|
||||
process_material = ExtResource("1_6pmub")
|
||||
draw_pass_1 = ExtResource("2_tfobi")
|
||||
Loading…
Reference in New Issue