fix: remove spurious jump on vines in WalkTemplate and add pitch tracking

- WalkTemplate: remove OnClimbable jump/sprint logic that caused the
  player to jump when walking past vine blocks during flat traversal
- TemplateHelper: add CalculatePitch() for computing the look angle
  toward a 3D target relative to eye height
- All templates (Walk, Ascend, Descend, Climb, SprintJump): set
  physics.Pitch each tick so the player visually looks toward the
  current path target direction
- McClient: sync playerPitch and set _yaw/_pitch after pathfinding
  ticks so rotation is included in position update packets sent to
  the server

Made-with: Cursor
This commit is contained in:
BruceChen 2026-04-12 00:57:38 +08:00
parent 9046c61f95
commit 399c8cdc79
7 changed files with 25 additions and 13 deletions

View file

@ -3285,6 +3285,9 @@ namespace MinecraftClient
{
pathSegmentManager.Tick(location, playerPhysics, physicsInput, world);
playerYaw = playerPhysics.Yaw;
playerPitch = playerPhysics.Pitch;
_yaw = playerYaw;
_pitch = playerPitch;
return;
}