Walk mode
| Source guide | Project README |
Provides a third-person walking control, including input, walker animation, terrain following, camera updates and movement collision checks.
Enter, move, leave
flowchart LR
Start["Enter: save map state + install listeners"] --> Input["Input + frame time"]
Input --> Movement["Turn / move / ascend / fall"]
Movement --> Collision["Check obstacles + slide"]
Collision --> Landing["Land on terrain or geometry"]
Landing --> View["Update walker + camera"]
View --> Input
Start --> Stop["Leave: remove listeners + meshes; restore map"]
Collision --> Enclosed["If enclosed: search nearby clear position"]
Movement checks current obstacles but does not make traffic avoid the walker. Pair any new walk-mode state or listener with stopWalking.js.
- initWalk.js: install the walk control.
- moveWalker.js: move and slide along obstacles.
- resolveWalkerPosition.js: find a clear nearby position when enclosed.