blunderbuss working

This commit is contained in:
Derek
2024-11-23 16:27:50 -06:00
parent da6ac13cf7
commit 05b8c0d760
22 changed files with 1003 additions and 108 deletions

View File

@@ -0,0 +1,43 @@
[gd_scene load_steps=6 format=3 uid="uid://717hhehp83k8"]
[ext_resource type="Script" path="res://scripts/shotgun_pellet.gd" id="1_1v1ju"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_0ewk3"]
bounce = 0.3
[sub_resource type="SphereMesh" id="SphereMesh_5okb1"]
radius = 0.05
height = 0.1
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_we7vv"]
metallic = 1.0
roughness = 0.3
emission_enabled = true
emission = Color(1, 0.476275, 0.212537, 1)
emission_energy_multiplier = 20.0
[sub_resource type="SphereShape3D" id="SphereShape3D_55xw1"]
radius = 0.05
[node name="ShotgunPellet" type="RigidBody3D" groups=["pellet", "spawned"]]
collision_layer = 160
collision_mask = 237
mass = 0.01
physics_material_override = SubResource("PhysicsMaterial_0ewk3")
continuous_cd = true
contact_monitor = true
max_contacts_reported = 1
script = ExtResource("1_1v1ju")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_5okb1")
surface_material_override/0 = SubResource("StandardMaterial3D_we7vv")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_55xw1")
[node name="Timer" type="Timer" parent="."]
wait_time = 10.0
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]