particuls fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://b5rkwb64wgdwf"]
|
[gd_scene load_steps=3 format=3 uid="uid://b5rkwb64wgdwf"]
|
||||||
|
|
||||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_wf2yo"]
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_wf2yo"]
|
||||||
|
lifetime_randomness = 0.1
|
||||||
emission_shape_scale = Vector3(0.1, 0.1, 0.1)
|
emission_shape_scale = Vector3(0.1, 0.1, 0.1)
|
||||||
emission_shape = 1
|
emission_shape = 1
|
||||||
emission_sphere_radius = 1.0
|
emission_sphere_radius = 1.0
|
||||||
@@ -14,7 +15,9 @@ radius = 0.05
|
|||||||
height = 0.1
|
height = 0.1
|
||||||
|
|
||||||
[node name="GPUParticles3D" type="GPUParticles3D"]
|
[node name="GPUParticles3D" type="GPUParticles3D"]
|
||||||
amount = 50
|
emitting = false
|
||||||
|
amount = 100
|
||||||
|
one_shot = true
|
||||||
fixed_fps = 60
|
fixed_fps = 60
|
||||||
process_material = SubResource("ParticleProcessMaterial_wf2yo")
|
process_material = SubResource("ParticleProcessMaterial_wf2yo")
|
||||||
draw_pass_1 = SubResource("SphereMesh_gj8tf")
|
draw_pass_1 = SubResource("SphereMesh_gj8tf")
|
||||||
|
|||||||
@@ -62,6 +62,18 @@ tracks/0/keys = {
|
|||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [Vector3(0, 0, 0), Vector3(0, 3.14159, 0), Vector3(0, 6.28319, 0)]
|
"values": [Vector3(0, 0, 0), Vector3(0, 3.14159, 0), Vector3(0, 6.28319, 0)]
|
||||||
}
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("particules:rotation")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 5, 10),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector3(0, 0, 0), Vector3(0, -3.14159, 0), Vector3(0, -6.28319, 0)]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_skmei"]
|
[sub_resource type="Animation" id="Animation_skmei"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
@@ -77,6 +89,18 @@ tracks/0/keys = {
|
|||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [Vector3(0, 0, 0)]
|
"values": [Vector3(0, 0, 0)]
|
||||||
}
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("particules:rotation")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector3(0, 0, 0)]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4f4ub"]
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4f4ub"]
|
||||||
_data = {
|
_data = {
|
||||||
|
|||||||
@@ -14,33 +14,9 @@ radius = 0.1
|
|||||||
[sub_resource type="Animation" id="Animation_njhrs"]
|
[sub_resource type="Animation" id="Animation_njhrs"]
|
||||||
resource_name = "finger"
|
resource_name = "finger"
|
||||||
length = 3.0
|
length = 3.0
|
||||||
tracks/0/type = "value"
|
|
||||||
tracks/0/imported = false
|
|
||||||
tracks/0/enabled = true
|
|
||||||
tracks/0/path = NodePath("GPUParticles3D:visible")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/keys = {
|
|
||||||
"times": PackedFloat32Array(0, 2.96667),
|
|
||||||
"transitions": PackedFloat32Array(1, 1),
|
|
||||||
"update": 1,
|
|
||||||
"values": [true, false]
|
|
||||||
}
|
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_1p8b7"]
|
[sub_resource type="Animation" id="Animation_1p8b7"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
tracks/0/type = "value"
|
|
||||||
tracks/0/imported = false
|
|
||||||
tracks/0/enabled = true
|
|
||||||
tracks/0/path = NodePath("GPUParticles3D:visible")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/keys = {
|
|
||||||
"times": PackedFloat32Array(0),
|
|
||||||
"transitions": PackedFloat32Array(1),
|
|
||||||
"update": 1,
|
|
||||||
"values": [false]
|
|
||||||
}
|
|
||||||
|
|
||||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jrykd"]
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jrykd"]
|
||||||
_data = {
|
_data = {
|
||||||
@@ -73,7 +49,6 @@ mesh = SubResource("CapsuleMesh_ha068")
|
|||||||
|
|
||||||
[node name="GPUParticles3D" parent="." instance=ExtResource("2_ctykj")]
|
[node name="GPUParticles3D" parent="." instance=ExtResource("2_ctykj")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.424, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.424, 0)
|
||||||
visible = false
|
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
libraries = {
|
libraries = {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ background_mode = 2
|
|||||||
sky = SubResource("Sky_hj0r3")
|
sky = SubResource("Sky_hj0r3")
|
||||||
ambient_light_source = 3
|
ambient_light_source = 3
|
||||||
ambient_light_color = Color(0.371645, 0.450792, 0.92621, 1)
|
ambient_light_color = Color(0.371645, 0.450792, 0.92621, 1)
|
||||||
|
volumetric_fog_enabled = true
|
||||||
volumetric_fog_density = 0.1
|
volumetric_fog_density = 0.1
|
||||||
|
|
||||||
[node name="walk_zone" type="Node3D"]
|
[node name="walk_zone" type="Node3D"]
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ func _physics_process(delta: float) -> void:
|
|||||||
else:
|
else:
|
||||||
vect = (checkpoint.position - position).normalized() * SPEED_PARTICULES
|
vect = (checkpoint.position - position).normalized() * SPEED_PARTICULES
|
||||||
particules.process_material.set("gravity", vect)
|
particules.process_material.set("gravity", vect)
|
||||||
|
particules.emitting = true
|
||||||
anim.play("finger")
|
anim.play("finger")
|
||||||
|
|
||||||
var input_dir := Input.get_vector("left", "right", "up", "down")
|
var input_dir := Input.get_vector("left", "right", "up", "down")
|
||||||
|
|||||||
Reference in New Issue
Block a user