Remove the lip hang, which the edge hold has made unreachable #7
Loading…
Reference in a new issue
No description provided.
Delete branch "remove-lip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this does
Removes the lip hang: when the slime went over a ceiling edge, it hung just past the edge for
HOLD_TIME, and pressing up wrapped it onto the wall above.Why: since the edge hold (#4), the slime stops before leaving a ceiling, so the lip never starts anymore. I checked:
Removed:
isHangingOnLip,timeSpentOnLip,lipDirection,_start_lip_wrap,CLIMB_INPUT_BUFFER,timeSinceUpPressed, and the lip branches in movement and sticking.Kept:
_start_wall_top_wrap's own raycasts. It runs after the slime has already climbed past the corner, where_find_edge_corner(which looks from the surface you're still touching) can't see it. I added a comment explaining that.Testing
test_level.tscnloads and runs.🤖 Generated with Claude Code