Get node type after modifier

Hey,

I have a recast graph, and use a Simple Smooth Modifier. In my graph i use a couple of NodeLink2’s, and i’ve been trying to match the returned vectorPath with the path that contains the info on what node type it is (MeshNode/PointNode).
To no avail so far.

Is there a way of doing this, or how can i modify to get this information from the vectorPath.

Thanks in advance.

Hi

After using a simple smooth modifier, unfortunately it will not be easy to tell which point corresponds to which node.
The proper solution is to first split the path into parts so that the first part goes from the start to the first link, the second part from the first link to the second link etc. Then modifiers can be run on those parts separately. The RichAI script does this, which is how it can figure out which edges are links (see one of the recast graph examples, which has some jumping and climbing links). However the normal path modifiers do unfortunately not have support for that at this moment.

Ok, i’ll look into that. Thanks!
But, i’m getting weird behaviour when i use Node 2 and chain them. I get paths skipping node links in a very weird manor. How do i get the links going only from node link to node link?

Hi

Node links cannot connect directly to other node links, they will connect to nodes only on other graphs.
I also recommend that you put the endpoints of the links strictly inside the navmesh.

Aha, that explains a lot! =)
I’ll go back to my original setup then!

Tack!