Celeste’s Tiny Jump Fix: Corner Correction in Unity (C#)



A tiny ceiling overlap can cancel a jump. Celeste’s jump corner correction saves that near miss. You can recreate the idea in Unity.

This short walks through the actual C# logic: calculate a candidate position, test one to four pixels in the allowed direction, check the whole collider, then move and return before zeroing upward velocity. No clear candidate? Resolve the collision normally.

In this demo, one pixel is 0.125 Unity units, so two pixels right plus one pixel up gives an offset of (+0.25, +0.125). Tune the margin to your game’s scale.

Sources and credits
Celeste by Maddy Makes Games / Extremely OK Games. Opening footage and mechanic reference:

Released Celeste reference code:

The Unity recreation and code animations are original educational demonstrations, not an official Celeste tutorial.

Music: relax_background1 by joaquinton (CC0):

SFX: Kenney Interface Sounds (CC0):

Additional SFX: Pixabay Content License, via the HyperFrames media library:

#gamedev #Unity #Shorts

source

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy