Shoot the guy

This commit is contained in:
2023-09-02 09:18:16 -07:00
parent 37dbe271fe
commit 3b8e6b34c9
9 changed files with 131 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ albedo_color = Color(0.584314, 0.0352941, 0.141176, 1)
material = SubResource("StandardMaterial3D_phgri")
[sub_resource type="SphereShape3D" id="SphereShape3D_rokeu"]
radius = 0.8
[node name="TestBullet" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.538645, 0)
@@ -21,8 +22,11 @@ _projectileSpeed = 15.0
collision_layer = 2
collision_mask = 0
gravity_scale = 0.0
custom_integrator = true
continuous_cd = true
max_contacts_reported = 10
contact_monitor = true
can_sleep = false
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"]
visible = false
@@ -30,6 +34,7 @@ mesh = SubResource("SphereMesh_wuk0e")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0905764, 0, 0)
shape = SubResource("SphereShape3D_rokeu")
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"]