Repository navigation
Traversal: tick sim, hybrid climb, and the Aravath course - #244
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
9ccae8b to
e02dd99
Compare
f7fb3a5 to
cee579c
Compare
7cbdade to
a62120a
Compare
Record what actually moves a body, which climb and swim paths are stubs or dormant, and the determinism gaps. The upgrade plan stops before any feature code, including the traversal replay case. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Add the tick sim and the required traversal replay case. Reset character_full_tick onto the finite ground without weakening the y > -10 check. Slope, jump, and facing roots stay on libm. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Ground, air, crouch, sprint, and roll now step once per 60 Hz tick. Roll i-frames are ticks 5 through 19. The demo replay golden matches the new displacement. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Phases 2-6 share one tick stepper. Probes cover step, vault, and mantle. Climb is hybrid: markup wins, otherwise flagged surfaces, with regen locked and a collision-deviation lint. Swim reuses WaterPlayerState. Slide, prone, wall-run, glide, ledge, and shimmy run in the course script. Foot and hand IK stay on the presentation graph. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Consume GeometryNotice and allows_climb from the destruction crate. One-voxel seams ramp instead of snagging, a destroyed handhold detaches while keeping velocity, and the movement tick does not allocate. The replay case walks and climbs terrain that a brush cuts mid-run. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The gate's rustfmt check failed because the third-person module and re-export were inserted out of alphabetical order. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Main's cell-position vertex cache did not match the marching-cubes edge table, so the Aravath island trimesh did not hold the character. One vertex per crossed edge restores the stand, the camera ray, and the streamed chunk. The greybox golden returns to b663da52ea1d566e. Traversal replay digests are unchanged. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The push of 341e6d7 recorded CodeRabbit only. The pull-request workflows did not start. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Nothing in the demo loads rock_wall_02_diff_1k.jpg. The terrain trace now names the rebased mesher commit. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The island script now hashes to b663da52ea1d566e. Duplicate libm and veil dependency lines from the rebase are gone, and the workspace member list matches main. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
a62120a to
bf74dd0
Compare
Nothing loads rock_wall_02_diff_1k.jpg. The manifest row was the only remaining reference, so the hash check failed looking for the file. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7cc14be28b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let half = capsule_half(physics, player.body); | ||
| let center = self.body.pos + Vec3::Y * half; | ||
| physics.place_character(player.body, center); |
There was a problem hiding this comment.
Route locomotion through collision resolution
During ordinary non-fly movement, TraversalBody advances its position and this call teleports the kinematic capsule directly there. Unlike the previous control_character path, place_character performs no forward cast or slide, while ground_probe only checks downward support. Consequently, walking or rolling toward walls and other colliders can move the player into or through them; the traversal displacement must be resolved against the world before publishing the capsule position.
Useful? React with 👍 / 👎.
| if let Some(center) = physics.body_transform(body).map(|m| m.w_axis.truncate()) { | ||
| probe.water_surface = physics.water_surface_at(center); | ||
| probe.climbability = physics.climbability_at(body, center); |
There was a problem hiding this comment.
Probe the contacted surface before starting climbs
In the live Aravath motor, holding Interact can never start a climb: this probe never populates climb_point or markup_point, and it asks climbability_at about player.body, whose ActorKind::Character is explicitly classified as NonClimbable, rather than about the contacted wall. The synthetic course supplies those fields manually, so its tests do not cover this integration failure; a forward contact probe needs to provide the anchor, normal, and hit geometry ID.
Useful? React with 👍 / 👎.
| let wish = wish_dir(input); | ||
| let mut delta = scale(wish, CLIMB_SPEED * TICK_DT); | ||
| if probe.climbability == Climbability::Slippery { | ||
| delta.y -= 0.4 * TICK_DT; | ||
| } | ||
| body.pos += delta; |
There was a problem hiding this comment.
Map forward climb input to vertical movement
Once a caller supplies a valid climb probe, holding forward still cannot ascend because wish_dir always returns an XZ vector and the climb step applies it directly to position. Thus delta.y remains zero for climbable surfaces (apart from the forced downward slip), leaving the character at the initial anchor until a ledge is injected externally; climbing input should be projected onto the wall's vertical/tangent basis.
Useful? React with 👍 / 👎.
| body.mode = TraversalMode::Swim; | ||
| body.pos.y = surface - 0.2; | ||
| body.vel.y = 0.0; |
There was a problem hiding this comment.
Keep swimmers below the exit-depth threshold
After entering Swim in sufficiently deep water, this branch places the feet only 0.2 m below the surface, but the next ticks use that same feet depth against the 1.1 m SWIM_DEPTH threshold. water_hold therefore counts down and forces Ground after two ticks even though the water query is unchanged, causing the character to repeatedly exit, fall, and re-enter the water. The swim placement and depth/exit reference must use consistent body points or thresholds.
Useful? React with 👍 / 👎.
Description
Rebased onto
mainatcdea968cafter PR #205 merged. The copiedaravath_runtimetree is gone. This branch keeps main's demo and adds the traversal motor, the course, and foot/hand IK on top of it.The diff is about 3,000 lines. Physics owns the tick sim (
traversal.rs,deformed.rs). The greybox replay golden isb663da52ea1d566ebecause that motor now drives the island script.The compare job keeps main's eleven cases and the two traversal cases:
planner_pure,perception_world,gameplay_rng,fixed64,combat_resolve,destruction,gameplay_qa_aravath_slice,nav_reroute,causal_bridge,scripted_system,weavingtraversal5546a7c1244f37780c30704cd29537464281f9218403871f4e45d8f6576af214traversal_deformed48965cba19fa384a8989fc0e7bc58a303441118ea3c617aea5e03108def5149dastraweave-destructionis main's crate.rock_wall_02_diff_1k.jpgis unused, so the file and itsASSET_MANIFEST.tsvrow are both gone. The remaining manifest rows stay sorted and their sha256 values still match the LFS objects.Advisory security failures tracked in #303 and #305–#311 are left as they are.
Do not merge this PR from here.
Milestones
astraweave-physics.deformed_stepreads main'sGeometryNoticeandallows_climb. One-voxel seams ramp. A notice that covers the handhold detaches the climb and keeps velocity. The movement tick does not allocate.Type of change
Security Considerations
Action::Interactheld, on main'sPlayInput.Checklist