Search Unity

What is the best approach for a layout to walk on

Discussion in 'Getting Started' started by TheCelt, May 28, 2016.

  1. TheCelt

    TheCelt

    Joined:
    Feb 27, 2013
    Posts:
    742
    Hello

    I want to create a floor plan of rooms connected via doors and corridors. And i want the user to be able to click and the character will find the path to get there.

    I have two options: grids or nav mesh. But i don't know which one is going to be better here. The doors can cut off rooms entirely, so the the character needs to know when finding a path they cannot go to a room if it's locked for example.

    Because of this dynamic component does this mean a nav mesh is not possible because a nav mesh is static and un changing?
    One of the things i am not understanding if how i would handle things like a locked door to cut off access to the area.

    I did a grid version once, but it gets real messy listing all the objects that are collision grid tiles like sofa bed etc it was a lot of effort, not to mention the number of grid tiles to iterate through with the path finder is not ideal. As well as the complication of locked doors etc.

    So yeah just looking for some advice on this.