Two players carry a heavy crate together and it behaves wrongly when they walk apart
Carrying together is a favourite co-op moment, until one player runs left and the other right. The crate tears in two directions, the bodies drift away from their grips, or one player drags the other along. Here is a rule for who decides the movement and what happens when someone lets go.
Why this works
One object can only have one speed, so the carriers must agree on it. Taking the average of their wishes makes pulling apart cancel out, and letting everyone walk at the object's speed keeps the bodies at their grips. Weight then simply decides how many hands are needed.
When not to use it
Wrong when the players should struggle against each other or one should be able to overpower the other, such as a tug of war. Also poor for a long, awkward object like a ladder, where each end swings separately; treat it as two linked points.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- A diagram of every state
- 26 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Two players carry a heavy crate together and it behaves wrongly when they walk apart" (read_entry two-players-carry-one-heavy-object-together) 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