From 448890ae1f5bcaece270149d0c2c46a2ae6c272c Mon Sep 17 00:00:00 2001 From: Mythril382 <77225817+Mythril382@users.noreply.github.com> Date: Sat, 18 Nov 2023 19:31:58 +0800 Subject: [PATCH] h --- src/rcm/entities/unit/NeckUnit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcm/entities/unit/NeckUnit.java b/src/rcm/entities/unit/NeckUnit.java index 432a3a2..ba3ac7f 100644 --- a/src/rcm/entities/unit/NeckUnit.java +++ b/src/rcm/entities/unit/NeckUnit.java @@ -66,8 +66,8 @@ public void update(){ newPupilX = newPupilY = 0f; } - pupilX = newPupilX; - pupilY = newPupilY; + pupilX = Mathf.approachDelta(pupilX, newPupilX, neck.pupilSpeed); + pupilY = Mathf.approachDelta(pupilY, newPupilY, neck.pupilSpeed); } @Override