Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert obj files into voxels files? #71

Open
Canghaizhulei opened this issue Jun 11, 2024 · 2 comments
Open

How to convert obj files into voxels files? #71

Canghaizhulei opened this issue Jun 11, 2024 · 2 comments

Comments

@Canghaizhulei
Copy link

I want to use Dynamic NavMesh, but I don't know how to generate voxels files.

@ikpil
Copy link
Owner

ikpil commented Jun 11, 2024

I've checked, and I've found an issue.
I'll mention you once the fix is done.

@ikpil
Copy link
Owner

ikpil commented Sep 20, 2024

@Canghaizhulei
After you receive the latest update, take a look at line 144 in RcDynamicUpdateTool.cs. You will find the Copy(...) function there. By looking at this function, you should be able to figure it out.

        public DtDynamicNavMesh Copy(RcConfig cfg, IList<RcBuilderResult> results)
        {
            var voxelFile = DtVoxelFile.From(cfg, results);
            dynaMesh = new DtDynamicNavMesh(voxelFile);
            dynaMesh.config.keepIntermediateResults = true;
            colliderGizmos.Clear();

            return dynaMesh;
        }

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants