Repository navigation
feat: ledges are easy to catch in a jump and can't be caught while falling, like Gothic - the grip pulls you onto the lip, an Immersion option allows grabs while falling - #587
Open
BoroBongo wants to merge 11 commits into
Conversation
…ched that much higher, lower and further along the approach (one ray per 15 cm, the walkable hit nearest to the hand wins), so a hand jumping below a lip finds it; reach 0 probes exactly as before, with a PlayMode test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ls (XriRig: CharacterController.Move like the leap) - in a ledge anchor's select event it runs before XRI's ClimbProvider anchors the hand, so the climb holds the hand where it arrives Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mping) and 0.2 s after its landing a hand grips lips 0.6 m away: the anchor's grab box stretches to the hand, half-close tick and glow are on, the grip pulls the body until the hand sits on the lip; while falling no ledge can be grabbed like in Gothic, unless the new Immersion option ledgeGrabFalling (default off) allows it with the normal reach Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the lip only in a jump, no ledge grab while falling unless the new Immersion option allows it, ladders unchanged) and its ranges, option and XRI select-order pitfall in Docs/ledge-climbing.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lling) in all 8 languages (added through Unity MCP) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ic rule "a falling hero catches no ledge" (unless the player's option allows it) lives in Core, not in the VR reach Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s' ledge reach - Normal / Jump / Blocked from HeroFallService.Phase with the 0.2 s grace and LedgeService.CanCatchLedge, logged on change; VrLedgeReach updates it before its guards (no stale flags while suspended) and hides the stretched anchors when the jump reach ends Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd - VrLedgeAnchor answers the new port IVrGripOffset (how far the grip pulls, zero unless stretched), XriInteractableBridge moves the rig in the climbable's select event before XRI's ClimbProvider anchors the hand (XriRig.PullBody, CharacterController.Move; off controller = no move, warned once) and warns once when a pulled hand is off its grip a frame later; IVrRig.MoveBody is gone; the anchor shrinks its box itself when placed, hidden, gripped or let go, skips resizes under 1 cm and keeps no hand behind the wall face Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uches - XRI ranks near targets by attach point, so the stretched box (ranked by its lip) won over a ladder whose transform is further away; IVrGrabber.GetTouched (XriGrabberBridge: one overlap at the near caster, mapped by the interaction manager) lets VrLedgeReach hide the hand's anchor meanwhile; and a hand within 5 cm of where the jump probe last found no lip isn't probed again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in the XRI backend (IVrGripOffset, XriInteractableBridge.PullToGrip, the once-only off-grip warning as XRI-upgrade guard), the ledge yielding to a touched ladder or item, the probe pre-gate and LedgeService.CanCatchLedge in Docs/ledge-climbing.md; the decision record's consequences name where the pull happens and the ladder/item rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Mode (generated by Unity on import) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
AI review (architecture-reviewer + gothic-reviewer)
Fixed in this PR (nothing deferred):
Not changed: a grab on the way down below the take-off counts as falling. That is the ADR's rule (only in a jump). Verified locally:
Reports and answers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Ledges are easy to catch in a jump, and can't be caught while falling, like in Gothic.
HeroFallService.Phase == Jumping, plus 0.2 s after landing) a hand catches a climbable lip within about 0.6 m instead of 0.2 m (0.45 m with ledge hints Glow). The lip glows and the hand half closes and ticks from that far. A grip there pulls the body up until the hand sits on the lip, and the climb continues as usual (pull up or comfort climb).ledgeGrabFalling, default off) allows it, with the normal short reach.Technical:
LedgeProbeDomain.ProbeEdge(..., reach)searches the top further from the hand (PlayMode test).LedgeService.CanCatchLedge(phase, allowWhileFalling)is the Gothic rule.VrLedgeReachMode(Normal / Jump / Blocked) decides the reach.VrLedgeAnchorstretches its grab box to the hand and answers the new portIVrGripOffset.XriInteractableBridgepulls the rig (XriRig.PullBody, CharacterController.Move) before XRI's ClimbProvider anchors the climb, and warns once if a pull leaves the hand off its grip (an XRI upgrade guard).IVrGrabber.GetTouchedlets a touched ladder or item win over the stretched box.Stacked on #584 (needs
HeroFallService).ADR:
Docs/adr/2026-11-30-ledge-air-reach.md, map inDocs/ledge-climbing.md.Why
Playtest (G1 Mroczne Tajemnice, a Gothic 1 mod): grabbing a ledge while jumping in place below it was very hard. In Gothic you target the ledge (ALT) and climb; in VR the hand had to hit a 0.2 m spot at the top of a jump.
How to test manually
[Ledge] Jump reach (Jumping)in the log. Grip:[XRI] Grip pull ..., the hand ends on the lip and you hang; pull up or comfort climb as usual.Blocked). Immersion "Grab while falling" = on: the normal short reach catches it.LedgeProbeTest(18 tests).Save/load
Nothing is saved. The option is Gothic.ini (
[GOTHIC_VR_IMMERSION] ledgeGrabFalling, default 0).Known gaps / follow-ups
ledgeGrabFalling(separate wiki repository)..claude/review/feature-ledge-air-reach/(architecture: fits with concerns -> the body pull moved into the XRI backend, the reach mode and the Gothic rule extracted; gothic: no blockers, all items fixed). Tested by the author in the editor (VR simulator).🤖 Generated with Claude Code