Skip to content

NavigationObstacle3D.avoidance_enabled = false does not allow NavigationAgent3D to pass #108259

@dmlary

Description

@dmlary

Tested versions

  • Reproducable in v4.4.1.stable.official [49a5bc7], v4.3.stable.official [77dcf97]

System information

Godot v4.4.1.stable - macOS Sonoma (14.7.6) - Multi-window, 2 monitors - Metal (Forward+) - integrated Apple M3 Max (Apple9) - Apple M3 Max (16 threads)

Issue description

When using a NavigationAgent3D with avoidance enabled, and a NavigationObstacle3D, if you set NavigationObstacle3D.avoidance_enabled = false, the agent still is blocked by the obstacle. The agent can go through the obstacle if you clear the obstacle's avoidance_layer.

Image

Steps to reproduce

Use the MRP below. You can press the Start Navigation button to have the capsule try to navigate through the wall. There are two other toggles: "Enable Wall Avoidance" to set obstacle.avoidance_enabled, and "Enable Wall Avoidance Layers" to set the layers to 0 or 1.

When the Avoidance Layer is set, the avoidance_enabled has no impact on whether the capsule can navigate through the wall.

Image

Minimal reproduction project (MRP)

navigation-obstacle-avoidance-issue.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions