Fix incorrect slerp usage

main
copygirl 2 months ago
parent 6cc5cd4ecc
commit 5bba3db736
  1. 4
      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. # Apply body and head "bumping" that causes the avatar to "shake" in response to being hit.
if skeleton: 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) 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) head_bump = head_bump.slerp(Quaternion.IDENTITY, 1 - 0.01 ** delta)
var base_bone := skeleton.find_bone("Hips") var base_bone := skeleton.find_bone("Hips")

Loading…
Cancel
Save