Skip to content

Add configurable humanized look rotations#5043

Open
quatrecentdouze wants to merge 2 commits into
cabaletta:1.21.11from
quatrecentdouze:feature/humanizer
Open

Add configurable humanized look rotations#5043
quatrecentdouze wants to merge 2 commits into
cabaletta:1.21.11from
quatrecentdouze:feature/humanizer

Conversation

@quatrecentdouze

@quatrecentdouze quatrecentdouze commented Jun 2, 2026

Copy link
Copy Markdown

Summary

This PR adds a configurable humanized look rotation system directly on Baritone.

Instead of snapping instantly to every target rotation, Baritone can now smooth camera movement in a more natural way while preserving the logical rotations needed for pathing, mining, placing, farming, and elytra movement.

What Changed

  • Added new humanizeLook settings to control look speed, acceleration, jitter, overshoot, elytra speed, and movement posture.
  • Extracted the old aim processing logic into a dedicated AimProcessor.
  • Added HumanizedRotationSmoother for stateful, testable rotation smoothing.
  • Added VisualRotationHelper for visual-only camera interpolation and movement posture.
  • Refactored LookBehavior to track:
    • effective/server rotations used for Baritone logic
    • visible camera rotations shown to the player
  • Updated reachability probing to use peekRotationForReachability, so blocks are not considered unreachable just because the humanized rotation has not arrived yet.
  • Added unit tests for the smoother and visual rotation helper.

Important Behavior

Block interactions use humanized effective rotations, so mining and placing wait until Baritone is actually aimed correctly.

Movement/pathfinder rotations intentionally remain immediate and unhumanized. This is important because delaying movement yaw can make pathing unstable or cause circular movement. For normal movement, only the visible camera is smoothed toward the path heading.

This keeps path execution reliable while making Baritone-controlled look behavior feel much less robotic.

@quatrecentdouze quatrecentdouze changed the title feat(humanizer): implemented this feature Add configurable humanized look rotations Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant