Smoothly wrap around ceiling lips and wall tops #2
Loading…
Reference in a new issue
No description provided.
Delete branch "smooth-edge-wrap"
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
Going around an edge used to depend on the round collider happening to slide around the corner, so the result changed with exact positioning. Now the slime finds the corner and swings around it on a smooth quarter circle at crawling speed, and the sprite rotates along with it.
CLIMB_INPUT_BUFFER).How it works (
Characters/player.gd)_update_wrapmoves the slime along the arc. Physics and input are paused for the swing, which takes about 0.1s with the current radius and speed.Testing
Not run in Godot yet. Please check:
The corner-finding assumes the player's collision shape stays a
CircleShape2D, and that the platform edges are square corners.🤖 Generated with Claude Code