+1 vote

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:


Godot version 3.4.4
in Engine by (94 points)

1 Answer

0 votes

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.

by (204 points)

Yeah, I've "solved" this problem by adjusting the navmesh, but I'll keep that in mind!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.