[gd_scene load_steps=18 format=3 uid="uid://bhdq6md7l8avi"] [ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_mhjx8"] [ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="3_fnuwe"] [ext_resource type="ArrayMesh" uid="uid://5km1hdev7qmn" path="res://assets/psx-fire-extinguisher/source/josé.obj" id="3_ugbnf"] [ext_resource type="Shader" uid="uid://cxdqrovqrfhi7" path="res://sphere.gdshader" id="4_27xdh"] [ext_resource type="Script" uid="uid://c6w5omkrnbahq" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_id8d5"] [ext_resource type="Material" uid="uid://ccuuerlf7l75a" path="res://assets/psx-fire-extinguisher/source/material_0.tres" id="4_ugbnf"] [ext_resource type="Texture2D" uid="uid://lrp1o0ydnpy5" path="res://assets/two-stories-with-interiors/textures/xv_color_00.jpeg" id="5_2rh0v"] [ext_resource type="Texture2D" uid="uid://l3yqk4echy8y" path="res://assets/fire/fire_tex_2.png" id="5_27xdh"] [ext_resource type="Texture2D" uid="uid://q2qah83jlqud" path="res://assets/fire/fire_tex_1.png" id="6_nflv3"] [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_ugbnf"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_mhjx8"] height = 0.53100586 radius = 0.115722656 [sub_resource type="Resource" id="Resource_ugbnf"] script = ExtResource("4_id8d5") metadata/_custom_type_script = "uid://c6w5omkrnbahq" [sub_resource type="BoxShape3D" id="BoxShape3D_ugbnf"] size = Vector3(0.06933594, 0.022819519, 0.14248466) [sub_resource type="BoxShape3D" id="BoxShape3D_id8d5"] size = Vector3(0.17430115, 0.088157654, 0.12747192) [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ugbnf"] lifetime_randomness = 0.41 direction = Vector3(0, 0, -1) spread = 1.621 initial_velocity_min = 10.0 initial_velocity_max = 15.0 angular_velocity_min = -2.290016 angular_velocity_max = -2.290016 radial_velocity_min = -2.2000222 radial_velocity_max = 2.1999776 scale_min = 0.099999994 scale_max = 0.5 collision_mode = 1 collision_friction = 0.32 collision_bounce = 0.59 collision_use_scale = true [sub_resource type="ShaderMaterial" id="ShaderMaterial_bwwjp"] render_priority = 0 shader = ExtResource("4_27xdh") shader_parameter/noise_tex = ExtResource("5_27xdh") shader_parameter/strength = 0.5 shader_parameter/noise_scale = 1.0 shader_parameter/speed = 1.0 shader_parameter/fire_tex_1 = ExtResource("6_nflv3") shader_parameter/fire_tex_2 = ExtResource("5_27xdh") shader_parameter/fire_mask = ExtResource("5_2rh0v") shader_parameter/inner_color = Vector4(2.708, 0.509, 0.211, 0) shader_parameter/outer_color = Vector4(1.172, 0.324, 0.193, 0) shader_parameter/detail_strength = 3.0 shader_parameter/scroll_speed = 1.2 shader_parameter/fire_height = 1.0 shader_parameter/fire_shape = 1.5 shader_parameter/fire_thickness = 0.55 shader_parameter/fire_sharpness = 1.0 shader_parameter/intensity = 1.0 shader_parameter/noise_octaves = 6 shader_parameter/noise_lacunarity = 3.0 shader_parameter/noise_gain = 0.5 shader_parameter/noise_amplitude = 1.0 shader_parameter/noise_frequency = 1.5 shader_parameter/scale = 1.0 [sub_resource type="SphereMesh" id="SphereMesh_2rh0v"] material = SubResource("ShaderMaterial_bwwjp") [node name="extinguisher_model" type="Node3D"] [node name="extinguisher_model" parent="." instance=ExtResource("1_mhjx8")] mass = 0.534 physics_material_override = SubResource("PhysicsMaterial_ugbnf") center_of_mass_mode = 1 center_of_mass = Vector3(0, -0.3, 0) picked_up_layer = 65540 [node name="CollisionShape3D2" type="CollisionShape3D" parent="extinguisher_model"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.26989746, 0) shape = SubResource("CylinderShape3D_mhjx8") [node name="GrabPointHandRight" parent="extinguisher_model" instance=ExtResource("3_fnuwe")] transform = Transform3D(1, 0, 0, 0, 0.9748974, -0.22265463, 0, 0.22265463, 0.9748974, -0.022677422, 0.7498415, -0.0077458173) snap_hand = false hand_pose = SubResource("Resource_ugbnf") [node name="GrabPointHandLeft" parent="extinguisher_model" instance=ExtResource("3_fnuwe")] transform = Transform3D(1, 0, 0, 0, 0.97414184, -0.22593734, 0, 0.22593734, 0.97414184, 0.021120854, 0.7700943, -0.008151233) hand = 0 snap_hand = false hand_pose = SubResource("Resource_ugbnf") [node name="CollisionShape3D3" type="CollisionShape3D" parent="extinguisher_model"] transform = Transform3D(1, 0, 0, 0, 0.937142, 0.34894824, 0, -0.34894824, 0.937142, -0.0024414063, 0.6866444, 0.031090735) shape = SubResource("BoxShape3D_ugbnf") [node name="CollisionShape3D4" type="CollisionShape3D" parent="extinguisher_model"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00059975684, 0.63064456, -0.099811435) shape = SubResource("BoxShape3D_id8d5") [node name="GPUParticles3D" type="GPUParticles3D" parent="extinguisher_model"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.62674445, -0.14910562) amount = 65 amount_ratio = 0.0 lifetime = 0.53 process_material = SubResource("ParticleProcessMaterial_ugbnf") draw_pass_1 = SubResource("SphereMesh_2rh0v") [node name="MeshInstance3D" type="MeshInstance3D" parent="extinguisher_model"] material_override = ExtResource("4_ugbnf") mesh = ExtResource("3_ugbnf") [connection signal="action_pressed" from="extinguisher_model" to="extinguisher_model" method="_on_action_pressed"] [connection signal="released" from="extinguisher_model" to="extinguisher_model" method="_on_released"]