-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 3D navigation demo for 4.0 #748
Conversation
a408f65
to
63e176c
Compare
08b855b
to
87ea553
Compare
@jtnicholl |
Not sure how I didn't notice that error message. |
@jtnicholl |
That's better, though it still lifts off the ground a bit near the bases of the ramps. I increased the agent_radius to 0.2 and that improved it a bit further. Still a slight bump but it's not that noticeable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scenes need to be opened and re-saved since Godot 4 now doesn't save extra spaces inside parenthesis.
I figured that an advanced 3D navigation demo could be made later to showcase these features. I also renamed the directory it's in from "navmesh" to "basic_navigation".
I would prefer the folder name not have "basic" in it, unless/until there are multiple navigation demos. Even then, there's an argument in favor of having both "navigation" and "advanced_navigation" names.
I have updated the 3D navigation demo for Godot 4.0. On the list in #697.
Since the new NavigationServer provides a lot of new features for dynamic obstacle avoidance and such, and this demo doesn't use them, I also renamed it from "3D Navigation Mesh" to "Basic 3D Navigation". I figured that an advanced 3D navigation demo could be made later to showcase these features. I also renamed the directory it's in from "navmesh" to "basic_navigation".
One other thing I did is I extracted the robot mesh, level mesh, and navmesh from the scene and saved them to their own .res files. They contain binary data so they shouldn't have been packed into a .tscn file like that. I also removed the unused AnimationPlayer node, I'm not sure why it was there.
Lastly, I ran into an issue where the robot won't cross one small section of the level. This doesn't happen in the 3.x version. I tried everything I could think of, but I couldn't figure out why it's happening. Here's a screenshot to demonstrate:
Hopefully someone can figure out what's causing this. I think it might be an engine bug. I don't think it's so major that this can't still be merged for now, but it will have to be fixed later.