Minecraft-Console-Client/MinecraftClient/Physics
BruceChen 3efe63c54d feat: add pose system, slime block bounce, and crawling to physics engine
Implement the three Phase 0 prerequisites for the pathfinding rewrite:

- Pose system (vanilla Player.updatePlayerPose): dynamic AABB height based
  on current pose -- Standing (1.8), Sneaking (1.5), Swimming/Crawling (0.6).
  Automatically downgrades pose when headroom is insufficient (Standing ->
  Sneaking -> Swimming), matching vanilla 1.14+ forced-crawl behavior.

- Slime block bounce (vanilla SlimeBlock.bounceUp / stepOn): reverses
  downward velocity on landing, with sneaking suppression via
  isSuppressingBounce(). Also applies the horizontal slowdown effect
  from SlimeBlock.stepOn when walking on slime with low vertical velocity.

- Per-pose dimension constants in PhysicsConsts with eye heights for each
  pose, sourced from vanilla Avatar.POSES (26.1 decompiled).

- Debug logging for pose transitions, slime bounces, and periodic physics
  state dumps routed through McClient's ILogger.

Tested on a real 1.21.11 server: crawling triggers correctly under 1-block
ceilings, sneaking under 1.5-block ceilings, slime bounce produces correct
decaying oscillation, and pose recovery works when obstacles are removed.

Made-with: Cursor
2026-04-12 18:43:32 +00:00
..
Aabb.cs feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
BlockShapeData.json feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
BlockShapes.cs More minor optimizations 2026-03-26 18:01:56 +01:00
CollisionDetector.cs feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
MovementInput.cs feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00
PhysicsConsts.cs feat: add pose system, slime block bounce, and crawling to physics engine 2026-04-12 18:43:32 +00:00
PlayerPhysics.cs feat: add pose system, slime block bounce, and crawling to physics engine 2026-04-12 18:43:32 +00:00
Vec3d.cs feat: implement physics engine for player movement and collision detection 2026-03-22 15:29:22 +08:00