Spielerando

A crouching player stands up under a low ceiling and gets stuck in it

Ducking changes how tall a player's body is, and standing up needs room. If the body grows without asking, players end up inside the ceiling, and the server and the picture disagree about the height. Here is a height rule both sides can run the same way, including the moment the ceiling arrives from above.

Why this works

Standing up needs space the body does not yet have, so the height must be asked of the room, not just the button. When every machine moves the height in fixed steps from the same inputs, the picture and the rules always agree about how tall the player is.

When not to use it

Overkill for a game with no ceilings, or where crouching only changes the look and never the hitbox. It also fails for a body whose height is not a simple stretch, such as a creature that rolls into a ball: use a separate shape per pose.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 27 lines of example code with 3 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "A crouching player stands up under a low ceiling and gets stuck in it" (read_entry crouch-height-shared-by-server-and-picture) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP