Commit 8743c60
committed
fix(climb): only engage slide when backward direction is downhill
The slide gate previously used |forwardAlongStrand.y|, so it ignored
the sign of the slide direction. On shallow ropes (chord <30 deg from
horizontal) where computeForwardIsLast picks forward from player look,
forward can resolve to downhill. Holding S + sprint then activated the
slide and sent the player rapidly uphill, which contradicts the
gravity-assisted intent of the mechanic.
Add forwardAlongStrand.y > 0 to the slide gate so the slide only
engages when "backward" along the chord actually points down. Vertical
and steeply-angled ropes are unaffected because computeForwardIsLast
already forces forward = uphill above the VERTICAL_BIAS threshold.
Holding S without sprint still works on forward-is-downhill ropes; only
the sprint turbo is suppressed.
Closes #961 parent da8bd2c commit 8743c60
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
384 | 388 | | |
385 | | - | |
| 389 | + | |
| 390 | + | |
386 | 391 | | |
387 | 392 | | |
388 | 393 | | |
| |||
0 commit comments