Skip to content

Commit 1679832

Browse files
committed
interpolate between serverRotation and activeRotation, rather than prevServerRotation and serverRotation
1 parent af1b01f commit 1679832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/request/rotating/RotationManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ object RotationManager : RequestHandler<RotationRequest>(
203203
fun getRotationForVector(deltaTime: Double): Vec2d? {
204204
if (activeRequest?.mode == RotationMode.Silent) return null
205205

206-
val rot = lerp(deltaTime, prevServerRotation, serverRotation)
206+
val rot = lerp(deltaTime, serverRotation, activeRotation)
207207
return Vec2d(rot.yaw, rot.pitch)
208208
}
209209

0 commit comments

Comments
 (0)