Vive-Teleporter icon indicating copy to clipboard operation
Vive-Teleporter copied to clipboard

Generate the border dynamically (temporary solution provided)

Open luhillxs opened this issue 8 years ago • 1 comments

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 avatar Nov 08 '16 16:11 luhillxs

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.

Flafla2 avatar Nov 28 '16 17:11 Flafla2