Code Monkey home page Code Monkey logo

navmeshplus's Introduction

NavMeshPlus

NavMeshComponents.Extensions provides you with ability to create navigation meshes that are generated automatically from your Scene geometry, which allows characters to move intelligently around the game world.

NavMesh

Unity 2D Pathfinding

Wiki [here] How To [here]. Demo [github]. Discuss [unityforum].

This repo is fork of Unity NavMeshComponents enhanced with Extensions system for 2d Pathfinding and more. [link]

2D NavMesh

In repo you will find implementation of NavMeshSurface and 2d Extensions for tilemap, sprites and collider2d top down games.

To use it in your project:

  1. Copy repo into your Asset folder (or install as a package).
  2. Create Empty Object in scene root.
  3. Add NavMeshSurface component to Empty Object and add NavMeshCollecSources2d component after.
  4. Click Rotate Surface to XY (to face surface toward standard 2d camera x-90;y0;z0)
  5. Add NavMeshModifier component to scene objects obstacles, override the area.
  6. In NavMeshSurface hit Bake.

How does it works:

  1. It uses NavMeshSurface as base implementation.
  2. Implements world bound calculation.
  3. Implements source collector of tiles, sprites and 2d colliders
  4. Creates walkable mesh box from world bounds.
  5. Convert tiles, sprites and 2d colliders to sources as NavMeshBuilder would do.

Setup

You can use this in two different ways: downloading this repository or adding it to your project's Package Manager manifest. Git must be installed and added to your path. Alternatively, you can pick scripts and place in your project's Assets folder.

Method 1. Download

Download or clone this repository into your project in the folder Packages/com.h8man.2d.navmeshplus.

Method 2. Package Manager Manifest

The following line needs to be added to your Packages/manifest.json file in your Unity Project under the dependencies section:

"com.h8man.2d.navmeshplus": "https://github.com/h8man/NavMeshPlus.git#master"

Method 3. Add Package form git URL

Go to Package Manager click + and then select Add Package form git URL paste url:

https://github.com/h8man/NavMeshPlus.git

navmeshplus's People

Contributors

axha avatar codxr02 avatar colinbellino avatar h8man avatar mitay-walle avatar rhys-vdw avatar

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.