Jump to content
BramSmulders

Find Shortest Path

Recommended Posts

Hello,

 

I wanted to use the Find Shortest Path node. I like the node, but I only understand the basics of it. 

I want to use it to connect two points with Consider Turning costs turned on.

However; I want it to look like the red line I drew below. I want the line to do from A to B (or from B to A), take the  minimum amount of turns, but go at least one unit forward before doing so. I do not want to use the outer most points of the grid. Is this a function within the node?

My example files did not seem to work sadly.

FindShortestPath_zpsf63c6c1a.png

 

Thanks!

 

-Bram

Share this post


Link to post
Share on other sites

Try making an edge group (check Unshared Edges), then use that group on the "Edges to Avoid" parameter of the Find Shortest Path SOP.

 

I hope this helps :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×