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

Click to move example causes CharacterBody3D to oscillate if distance to value is refined. #137

Open
BracerJack opened this issue Aug 31, 2024 · 0 comments

Comments

@BracerJack
Copy link

In your code here:
https://kidscancode.org/godot_recipes/4.x/3d/click_to_move/index.html

The line: if transform.origin.distance_to(target) < .5:
Causes the object to arrive quite far away from the clicked location.
Lowering the number causes the object to get closer, which is good, but if the number gets too low, the object reaches where it needs to be but starts oscillating.

Example attached, Godot v4.4 dev1, 1 Sep 2024:
godot_del.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant