Skip to content

ARIADNE_WORLDS: water, wading and swimming (OW9, design) - #1545

Merged
transfix merged 1 commit into
masterfrom
docs/one-world-swimming
Nov 26, 2026
Merged

transfix merged 1 commit into
masterfrom
docs/one-world-swimming

Conversation

@transfix

Copy link
Copy Markdown
Owner

This adds the design for avatars in water: new section §18.10 of docs/roadmap/ARIADNE_WORLDS.md, plus an OW9 row in the One World phase table. Docs only.

What happens today

Measured with a throwaway probe (not committed): an avatar walking at 1.4 m/s from dry ground into a pool 3 m deep. The water is set up as scene_world makes a sea.

feet in the pool pace
relay (its world has the water field) 0.28 m under the surface 1.38 m/s
client prediction (no water) 3.00 m down, walking on the bottom 1.40 m/s
  • Floats too high. The avatar is a 70 kg box of 0.425 m³, about 165 kg/m³. A person is about 985 kg/m³.
  • Keeps walking. The walker sets the horizontal velocity with up to 840 N, which overpowers the water's drag.
  • Client and relay disagree. A client's room water reaches only its vehicle models, never its avatar world, so the player's own avatar would snap toward the relay's pose. This last point is read from the code and not seen live.

The design

  • OW9a, the same water on the client. The room's water goes into the client's avatar world, on the relay's clock and replayed by tick, as the boat model's already is. This removes the snap before any new behaviour.

  • OW9b, a person's density. avatar_body::density (default 985) and a per-avatar displacement share in field_set, like a wading chassis's. A person floats head-out.

  • OW9c, walker@2. walker@1 stays unchanged. walker@2 has three states, chosen from the water at the body:

    • walking;
    • wading, slower the deeper the water;
    • swimming: 1.0 m/s, 1.8 sprinting; move.z dives and surfaces; a stroke up climbs out onto an edge up to 0.6 m high; four times walking's energy cost.

    The knobs live in the world's world: block. Nobody drowns: an exhausted swimmer slows to what resting power sustains.

  • OW9d, drawing and controls. The swimmer drawn and its pose, a swim control scheme, and a live check on terrain_lab's sea.

Open questions:

  • What an older client without walker@2 should do.
  • Breath and drowning (out of scope).
  • The physics box staying upright while swimming.

Section 18.10. An avatar in water today floats like a cork on the relay
(feet 0.28 m under, walking on at 1.38 m/s) and walks on the bed in a
client's prediction, which has no water. The design: the room's water in
the client's avatar world on the relay's clock; a person's density, so
they float head-out; walker@2, wading slower by depth and swimming at a
swimmer's pace and cost, diving and climbing out; the swimmer drawn and
its controls. Phases OW9a-d.
@transfix
transfix merged commit 0cc0cff into master Nov 26, 2026
4 of 30 checks passed
@transfix
transfix deleted the docs/one-world-swimming branch November 26, 2026 07:11
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