fix: 2d surface hit graphics no longer appear when hitting an entity
This commit is contained in:
@@ -59,7 +59,7 @@ func _on_hit(result: Dictionary) -> void:
|
||||
|
||||
if result.collider.has_method("take_damage"):
|
||||
result.collider.take_damage(final_damage, result.position, owner_player)
|
||||
else:
|
||||
elif result.collider is StaticBody3D or result.collider is CSGShape3D:
|
||||
var size = 0.4 if impact_type == "plasma" else 0.15
|
||||
ImpactSpawner.spawn(get_tree(), impact_type, result.position, result.normal, size)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user