Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Videos

Content

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.

Files

Previews only

movie_008.mp4

This is "movie_008.mp4" by Matthew Spencer on Vimeo, the home for high quality videos and the people who love them.

Comments

Marrwan Elhussein

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

tarodev

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

Michael Cuddy

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