Skip to content
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

Fix NavigationAgent3D not emitting "target_reached" Signal reliably #47959

Closed

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Apr 16, 2021

Fixes #47334

NavigationAgent3D did only check distance to target on the slow physics tickrate. This created situations where a fast moving agent on high framerate would not emit the "target_reached" signal when it would immediatly move to the next target on completing the current navigation path (even if standing right on top the target position).

Now whenever the NavigationAgent3D completes a path follow and the "navigation_finished" signal is emitted a target distance checks is performed to also emit "target_reached" if distance to target is small enough.

Calinou and others added 15 commits March 17, 2021 21:50
This modal dialog displayed when the page is loaded. It can be
dismissed permanently by clicking the "OK, don't show again" button.
Clicking outside the modal will only dismiss it once.

This dialog is used to remind people that the HTML5 editor is still in
release candidate stage and isn't considered production-ready yet.
**Not tested** (I don't have an easy way to test currently). Resolves godotengine/godot-proposals#2394 .
Helps with ambiguous cases where it's not possible to tell which diagonal is used for collision in quads.
…ing called when exporting UWP

in uwp's version of export.cpp create a ExportNotifier object so that EditorExportPlugin _export_begin and _export_end functions will be called as documentated.
This updates global classes and exposes base member variables.
Fixes godotengine#39713
So the stack slots perform less type changes, which is useful for
future optimizations.
Seeking isn't implemented in built-in video formats and can only
be supported in GDNative-provided video formats.
Make calls faster with the caveat that the caller needs to make sure
that the return value type is already correct.
Avoid unnecessary allocation of temporary buffers for each mip, and creates
only one Image with the compressed data.
Also renames variable and reorders code for clarity.

Clarify that squish is now only used for decompression.

Documented which formats can be decompressed in Image.
Fix NavigationAgent3D not emitting "target_reached" Signal when reaching pathfinding target.
@smix8 smix8 requested a review from a team as a code owner April 16, 2021 19:49
@Calinou Calinou added this to the 4.0 milestone Apr 16, 2021
@smix8
Copy link
Contributor Author

smix8 commented Apr 16, 2021

I don't use 2D or have a test project ready but I see now that NavigationAgent2D has the same code base on this issue.

I assume 2D navigation users will face the same issue on high framerates so I will prepare a pr for the NavigationAgent2D that applies the same fix.

neikeq and others added 8 commits April 17, 2021 05:45
The trampolines were casting double to `size_t` (likely a copy-paste
mistake), so the value was getting truncated.
[master] C#: Fix `double` casting in wasm m2n trampolines
…e-dialog

Add a welcome dialog to the HTML5 editor
Clarified that the `merge_polygons` method can produce multiple holes.
* Particle shaders now have start() and process()
* Particle collision happens between them.
* The RESTART property is kept, so porting an old shader is still possible.

This fixes the problem of particle collisions not functioning on the first particle frame.
@smix8
Copy link
Contributor Author

smix8 commented Apr 27, 2021

Created a clean branch to remove this mess #48229

@smix8 smix8 closed this Apr 27, 2021
@smix8 smix8 deleted the issue_47334_navagent_target_reached branch April 27, 2021 13:49
@aaronfranke aaronfranke removed request for a team April 27, 2021 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NavigationAgent3D signal "target_reached" fires very unreliable with continues movement