Avoid targets colliding with themselves

This commit is contained in:
Antimundo 2024-01-01 19:13:11 +01:00
parent 7fb824ea7b
commit 4babc9c3c6
No known key found for this signature in database
GPG key ID: F83F260F8F88F0BC
2 changed files with 4 additions and 2 deletions

View file

@ -12,9 +12,11 @@ emission_energy_multiplier = 0.5
[sub_resource type="SphereMesh" id="SphereMesh_gr1eg"] [sub_resource type="SphereMesh" id="SphereMesh_gr1eg"]
material = SubResource("StandardMaterial3D_nkxxc") material = SubResource("StandardMaterial3D_nkxxc")
radial_segments = 32
rings = 16
[node name="Target" type="CharacterBody3D" groups=["Enemy"]] [node name="Target" type="CharacterBody3D" groups=["Enemy"]]
collision_mask = 9 collision_mask = 2
script = ExtResource("1_mc4da") script = ExtResource("1_mc4da")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."] [node name="CollisionShape3D" type="CollisionShape3D" parent="."]

View file

@ -211,7 +211,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 6, -16.6875)
material_override = SubResource("StandardMaterial3D_22nld") material_override = SubResource("StandardMaterial3D_22nld")
transparency = 1.0 transparency = 1.0
use_collision = true use_collision = true
collision_layer = 8 collision_layer = 2
size = Vector3(40, 12, 10) size = Vector3(40, 12, 10)
[node name="TargetPrison2" type="CSGBox3D" parent="TargetPrison"] [node name="TargetPrison2" type="CSGBox3D" parent="TargetPrison"]