Hit effect

This commit is contained in:
2026-05-25 20:56:08 +03:00
parent 6abf5355c2
commit d98a5ba0ac
3 changed files with 130 additions and 1 deletions
+4
View File
@@ -249,6 +249,10 @@ func _enter_ragdoll(hit_dir: Vector3, bull_speed: float) -> void:
_spawn_blood_burst(hit_dir)
var cam := _bull.get_node_or_null("Camera3D")
if cam:
cam.call(&"trigger_hit", clampf(bull_speed / 15.0, 0.4, 1.0))
# Keep the CharacterBody3D stationary: physics bones simulate relative to the
# skeleton root, so sliding the root makes every bone pose diverge.
velocity = Vector3.ZERO