NokiMo
tarodev
tarodev

patreon


Initial slope implementation

I experimented with a range of implementation approaches. It's difficult finding a good approach which doesn't mess with other physics systems, like external forces or gravity. If I was just making this for myself I could of course chop and change it, but doing that here could mess with peoples games.

Right now it's messy at the apex of platforms (you can hear all the splats from the ground disconnects). The fix is to prioritize forward facing slopes and apply the correct downward force. Right now I'm just choosing the first slope hit. I'll push a refined version soon. 


EDIT: I also added pressing down on one-way platforms to drop through.

Initial slope implementation

Comments

I would love to see the 2D character controller integrated with Netcode for GameObjects.

Michael Cuddy

Good point. I'll also add a boolean for 'slope dashing' in case people want to keep it like it is.

(Tarodev) Matthew Spencer

Hey dude, this is awesome! it uses the angle thing I was gonna try! One thing it damages is that dash, when it's at the apex of the slope it only affects the x speed which means it might dash forward into the air, we'll need to adjust the speed on the y when we're dashing on a slope

Marrwan Elhussein


Related Creators