Code Monkey home page Code Monkey logo

navigator's Introduction

Navigator

本项目提供unity脚本用以导出navmesh数据为recastnavigation可直接使用的tile cache文件

用法

1)先把exporter_for_unity里的文件复制到你的unity项目的随便一个Editor目录下;
2)烘培好NavMesh后通过菜单NavMeshExporter->ExportToNavBin把navmesh数据导出成bin文件,可通过RecastDemo里Load来看看是否正常;

Usage

This project provides unity scripts to export navmesh data into tile cache files that can be used directly by recastnavigation, and export some API for lua.
1)copy files in folder exporter_for_unity to any 'Editor' folder in your unity project;
2)after baked navmesh, then click NavMeshExporter->ExportToNavBin menu to export navmesh data to tile cache bin file, you can load the file in RecastDemo.

TODO

)导出lua接口

Note

)if you want to rebuild exporter_for_unity\NavigatorForUnity.dll, you can run recastnavigation\RecastDemo\Build\vs2015\recastnavigation.sln in windows system, and rebuild the NavigatorForUnity project.
)if you get a error with "fatal error C1083: 无法打开包括文件: “SDL.h”: No such file or directory", you should grab the latest SDL2 development library release from here and unzip it recastnavigation\RecastDemo\Contrib. Rename the SDL folder such that the path recastnavigation\RecastDemo\Contrib\SDL\lib\x86 is valid.

navigator's People

Contributors

liuhaopen 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.