We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1ca3d commit bd7ac3eCopy full SHA for bd7ac3e
common/src/main/kotlin/com/lambda/interaction/RotationManager.kt
@@ -226,8 +226,12 @@ object RotationManager : Loadable {
226
// No changes are needed when no inputs are pressed
227
if (signForward == 0f && signStrafe == 0f) return@runSafe
228
229
- // Actual yaw used to move the player
230
- val actualYaw = currentRotation.yaw
+ // Actual yaw used by the physics engine
+ var actualYaw = currentRotation.yaw
231
+
232
+ if (currentContext?.config?.rotationMode == RotationMode.SILENT) {
233
+ actualYaw = player.yaw.toDouble()
234
+ }
235
236
val yawRad = (movementYaw - actualYaw).toRadian()
237
0 commit comments