Skip to content

Commit 05eb5f2

Browse files
committed
faster player rotation
1 parent eed472e commit 05eb5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/ugi/hypertubes/entity/HypertubeEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ public void tick() {//DO NOT TOUCH AT ANY COST
355355
float currentPitch = this.getXRot();
356356

357357
// Interpolate smoothly (adjust 0.25f to control smoothness)
358-
float smoothYaw = Mth.rotLerp(0.25f, currentYaw, targetYaw);
359-
float smoothPitch = Mth.lerp(0.25f, currentPitch, targetPitch);
358+
float smoothYaw = Mth.rotLerp(1f, currentYaw, targetYaw);//might be able to cut most of this code since interpolation delta is 1
359+
float smoothPitch = Mth.lerp(1f, currentPitch, targetPitch);
360360

361361
// Apply new rotation
362362
this.setYRot(smoothYaw);

0 commit comments

Comments
 (0)