Skip to content

fix: make Pool steps walkable, walls solid, Player steady on slopes - #79

Merged
anistark merged 2 commits into
mainfrom
claude/intelligent-almeida-d13391
Nov 15, 2026
Merged

anistark merged 2 commits into
mainfrom
claude/intelligent-almeida-d13391

Conversation

@anistark

Copy link
Copy Markdown
Contributor

Pool's exit steps can be walked, the stock Player climbs from the basin floor onto the deck and back down

  • The three 0.4 m blocks and the 0.47 m last rise stalled the avatar, which floats 0.3 m over the ground
  • The flight is now 0.25 m risers counted down from the coping, as many as depth needs, under one ConvexHullCollider wedge
  • The steps prop is unchanged

Pool's basin walls are solid

  • They were drawn without colliders, so an avatar on the basin floor walked out through them and fell
  • One CuboidCollider per wall, the size of its mesh

Player keeps its pace on a slope whichever way it walks

  • ecctrl only turns its slope ray to the direction of travel under autoBalance, which Player turns off, so the ray stayed in front of the camera
  • SlopeRay in packages/components/src/Player.tsx turns it to follow the avatar's velocity; ecctrl is not patched
  • Backing down a 32° ramp goes 2.2 m/s (was 0.6), across it 2.5 (was 0.9), stairs backwards 1.7 down and 1.5 up (were 1.1 and 0.9); forward and flat-ground speeds are unchanged
  • Strafing straight up or down a slope now matches walking up or down it (2.0 and 2.2 m/s) instead of flat-ground speed

Also in the diff

Testing: just check passes. Walked in the workshop with the stock Player: pool floor to deck and back, all four walls of the default pool and a depth: 2.4 pool, and W/S/A/D on a 32° ramp, a Staircase and flat ground, in first and third person. Gamepad and touch joystick were not driven.

Refs #76 (also edits Player.tsx and Pool.tsx)

- `Pool`'s exit steps can be walked: the stock `Player` climbs from the basin floor onto the deck and back down
- `Pool`'s basin walls are solid, an avatar on the basin floor no longer leaves through them
- `Player` keeps walking speed on a slope whichever way it moves: backing down, backing up or across

[CONTRIBUTORS]
- `Pool` flight is 0.25 m risers counted down from the coping, under one `ConvexHullCollider` wedge
- One `CuboidCollider` per basin wall, sized from the same list as the wall meshes
- `SlopeRay` in `Player.tsx` turns ecctrl's slope ray to the direction of travel, which ecctrl only does under `autoBalance`
- Regenerated the `registry/` manifests and the `Pool` docs page, plus the `Person` docs page that was stale on `main`
…meida-d13391

- `Pool.tsx`: keep both import sets, the wedge collider's and the water's
- `registry/components/player.json`, `registry/components/pool.json`: regenerated with `just registry`
@anistark
anistark merged commit 0bc96c6 into main Nov 15, 2026
1 check passed
@anistark
anistark deleted the claude/intelligent-almeida-d13391 branch November 15, 2026 09:30
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