Skip to content

Generating Path Points Outside Enclosed Room Causing Drone AI to Get Stuck #34

Description

@JYeras8

I’m working on a drone AI that uses Nav3D to move around inside a floating room. The room is basically a box suspended in space with walls, a floor, and a ceiling. The drone is meant to move freely in 3D and follow the player around.

For the most part the navigation works fine. The drone can generate paths and move correctly through the room while following the player in 3D space. The issue starts happening when the player gets close to a wall, the ceiling, or the floor.

When that happens, sometimes the navigation system creates a path point outside the room. For example, a waypoint might end up behind a wall, above the ceiling, or below the floor. When the drone tries to reach that point it obviously can't get there, so it just ends up stuck trying to move toward a location that’s outside the level.

The room itself is completely enclosed, so navigation should only exist inside that interior space.

When looking at the Nav3D debug visualization, the red tactical navigation area looks correct and seems to match the interior of the room. But the green Nav3D volume extends way beyond the room, including outside the walls and underneath the floor.

I’ve tried adjusting collision settings on the walls, floor, and ceiling, making sure they block properly. I’ve also added a roof mesh to completely close the room. Even with those changes, the green navigation volume still extends outside the room boundaries.

Because of that, the system occasionally generates path points outside the playable space when the player gets near a surface, which causes the drone to get stuck trying to reach those invalid points.

https://youtu.be/qwWH0Fv8idA
Image
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions