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

Generate the border dynamically (temporary solution provided) #37

Open
luhillxs opened this issue Nov 8, 2016 · 1 comment
Open

Generate the border dynamically (temporary solution provided) #37

luhillxs opened this issue Nov 8, 2016 · 1 comment

Comments

@luhillxs
Copy link

luhillxs commented Nov 8, 2016

Updated 11/17/16:
I copied the functions u provided in ViveNavMeshEditor into a customized script I made and simply modified it to be able to call in runtime. Using the NavMesh Obstacle component in Unity I'm able to change the border dynamically.

Still, hope this function will be provided in the project in the future :)

PS. If anyone needs the same function I could send u the script I made as a temporary solution. It's clumsy, though.

@luhillxs luhillxs changed the title Is it possible to make it generate the border dynamically? Generate the border dynamically (temporary solution provided) Nov 17, 2016
@Flafla2
Copy link
Owner

Flafla2 commented Nov 28, 2016

I would advise against this, as the border generation function is quite inefficient (O(n^2) i believe). At least, don't do it every frame!

You can always create a custom solution that generates a border more efficiently around moving actors, without regenerating the entire mesh.

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

No branches or pull requests

2 participants