How do I make a character step up?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rubin

Hello, I have an enemy that follows a path through a navmesh but the enemy can’t step up small obstacles like the screenshot below:

:bust_in_silhouette: Reply From: Skydome

So I work with 2D mostly. So in 2D we have collision=moveandcollide(velocity*delta)

if collision:
if collision.collider== ‘here you check it’s jumpable obstacle’
and make them jump.

You can do the 3D version of this. Maybe the navmesh can be adjusted in a way that enemies don’t try to move from the side but from the front of that slide.

Yeah, I’ve “solved” this problem by adjusting the navmesh, but I’ll keep that in mind!

Rubin | 2022-07-15 15:32