Enemy phasing throug my GridMap/NavigationMesh

Godot4

Hello! I am a newbie developper, following tutorials to accomplish most things i wanted in a game i am working on. I encountered a problem and couldn’t find a solution online : I was working on a NavigationMesh to make enemies chase the player through pathfinding, but everytime i play the main scene, the enemy starts at the player position, but clips through the floor and is unable to follow the player. I can also provide my code if it can help for context. A huge thanks to the person who could help me!

I am assuming your game is in 3d. I think GridMap is 3d only.
In order to help you I’d need more information first

  • Was the enemy falling trough your gridmap before you were working on the navigationmesh?
  • What does the enemy spawn code look like?
  • What collision layers are the enemies set to?
  • Does the enemy have a collisionshape?
  • Does the enemy have a navigationagent? You’d need this in addition to the navigationmesh.

Here are some relevant tutorials that could help you further along:
https://www.youtube.com/results?search_query=godot+gridmap+navigation

Hello snipercup! First of all thank you for answering to m’y call for help! I managed to find the issue, wich was with my animation wich used the transform key frames, wich made my character clip through the floor. I fixed the animation and it works now!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.