Skip to content

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

Open
@BracerJack

Description

@BracerJack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions