Fix various issues
This commit is contained in:
@@ -1176,16 +1176,14 @@ _data = {
|
||||
|
||||
[node name="Melee Enemy" type="RigidBody3D" node_paths=PackedStringArray("_hp") groups=["Enemy"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.251952, 0)
|
||||
disable_mode = 2
|
||||
collision_layer = 0
|
||||
collision_mask = 69
|
||||
axis_lock_angular_x = true
|
||||
axis_lock_angular_z = true
|
||||
collision_mask = 33
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 20
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
freeze = true
|
||||
freeze_mode = 1
|
||||
script = ExtResource("1_50och")
|
||||
_hp = NodePath("HP Component")
|
||||
|
||||
@@ -1194,7 +1192,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0840461, 0.475385, 0.143401
|
||||
shape = SubResource("BoxShape3D_1nq5h")
|
||||
|
||||
[node name="MeleeEnemy" type="Node3D" parent="CollisionShape3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0840461, -0.010569, -0.143401)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0840461, -0.612543, -0.143401)
|
||||
|
||||
[node name="Icosphere001" type="MeshInstance3D" parent="CollisionShape3D/MeleeEnemy"]
|
||||
transform = Transform3D(0.850843, 0, 0, 0, 0.850843, 0, 0, 0, 0.850843, 0.0805536, 0.468312, 0.158035)
|
||||
@@ -1255,4 +1253,13 @@ libraries = {
|
||||
[node name="HP Component" parent="." instance=ExtResource("2_1leby")]
|
||||
MaximumHP = 1
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="OnPlayerHit"]
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 68
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0840461, 0.475385, 0.143401)
|
||||
shape = SubResource("BoxShape3D_1nq5h")
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="OnEnemyHit"]
|
||||
[connection signal="body_entered" from="Area3D" to="." method="OnPlayerHit"]
|
||||
|
||||
Reference in New Issue
Block a user