From 5bba3db73614fc5b0c618231e67bc13ea9a0eb70 Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 23 Apr 2025 19:11:42 +0200 Subject: [PATCH] Fix incorrect slerp usage --- copyThrower.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyThrower.gd b/copyThrower.gd index 4b5d36d..b44030b 100644 --- a/copyThrower.gd +++ b/copyThrower.gd @@ -88,9 +88,9 @@ func _process(delta: float) -> void: # Apply body and head "bumping" that causes the avatar to "shake" in response to being hit. if skeleton: - current_body_bump = current_body_bump.slerp(body_bump, 1 - 0.001 ** delta) + current_body_bump = current_body_bump.lerp(body_bump, 1 - 0.001 ** delta) current_head_bump = current_head_bump.slerp(head_bump, 1 - 0.001 ** delta) - body_bump = body_bump.slerp(Vector3.ZERO, 1 - 0.01 ** delta) + body_bump = body_bump.lerp(Vector3.ZERO, 1 - 0.01 ** delta) head_bump = head_bump.slerp(Quaternion.IDENTITY, 1 - 0.01 ** delta) var base_bone := skeleton.find_bone("Hips")