ryancheung / recastsharp Goto Github PK
View Code? Open in Web Editor NEWdotnet 6 port of the C++ recastnavigation library.
dotnet 6 port of the C++ recastnavigation library.
Is the code manually generated, or is it being created with a tool ?
I am interesting in wether this will keep getting updated from the original repo, or if we need to manually sync changes !
Best regards!
Hi. You might want to add by-ref access to dtPoly's and dtPolyDetail's in dtCreateNavMeshData method. Currently you are writing data to stack instead of native memory.
// Store polygons
// Mesh polys
var src = @params->polys;
for (int i = 0; i < @params->polyCount; ++i)
{
ref dtPoly p = ref navPolys[i]; // <-- here and in some other places, you need to use ref or *
p.vertCount = 0;
p.flags = @params->polyFlags[i];
p.setArea(@params->polyAreas[i]);
What is the current status of the Recast project? Has the project been fully converted? I saw that there is an issue saying about some possible bugs, but did the conversion complete?
I'm curious if anyone is using the project, it's a project using unmanaged code, thinking about performance. :)
Regarding the demo, there is a very old project, but as they are code based on recast, maybe there is a great use of code in unity.
Git:
https://github.com/jlalleve/rcdtcs
Cheers!
I may be misunderstanding this but if I do
dtNavMeshQuery naviMeshQuery = DetourCommon.dtAllocNavMeshQuery();
naviMeshQuery.init(navMesh, 2048);
I get an assert failed on DetourNode.cs:line 37
. Looking at DetourNode I can't find anywhere that m_maxNodes
is set before the assert, If the lines
this.m_maxNodes = maxNodes;
this.m_hashSize = hashSize;
this.m_nodeCount = 0;
are moved before the asserts there is no problem. Am I initializing the dtNavMeshQuery
incorrectly?
RecastSharp/src/Detour/DetourNode.cs
Lines 32 to 42 in b91940f
如题,获取到Navmesh的所有boundary边界线段
请问能提供一个使用demo吗?
Please add a quick start or tutorial. Preferably for unity :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.