Code Monkey home page Code Monkey logo

Comments (4)

GGAlanSmithee avatar GGAlanSmithee commented on August 13, 2024

By the way, I actually encountered this problem while exploring a work-around for dynamically adding navmesh polygons to a mesh which seems to not be possible ATM. Is it? If not, it would make a great addition!

from navmesh.

mikewesthad avatar mikewesthad commented on August 13, 2024

Ah, thanks for doing the detective work and reporting this! This definitely looks like a bug. It probably makes sense for removeMesh to simply just remove the mesh - no need to destroy the mesh as well.

As for dynamically adding, are you thinking along the lines of destructible walls where you'd want to be able to add or remove polygons mid-game? It might require a bit of recoding so that the calculation can be done without tanking the frame rate, but it does sound like a worthwhile addition. Happy to accept a PR on it.

from navmesh.

mikewesthad avatar mikewesthad commented on August 13, 2024

Should be fixed & published now. I'm going to close this issue, but feel free to respond here or open a new issue about dynamic navmeshes.

from navmesh.

GGAlanSmithee avatar GGAlanSmithee commented on August 13, 2024

@mikewesthad Thanks for the quick fix, it works as intended!

Regarding dynamically manipulating the navmesh, my usecase is building a live editor, but another scenario would be for example a RTS, where if you add a building, that spot should be removed (a hole should be added). This feature is supported by recast.js for example.

If I get the time, I will look into sending you a PR, not sure I have the velocity to inject myself into another project at the moment though :)

from navmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.