Calculate a path based on a 3D model

Started by
1 comment, last by web383 12 years, 1 month ago
If you have a model of a tunnel or a long bendy pipe, or something like that, is there any neat way to calculate a path through the tube? Imagine I have a model a bit like this:

stock-photo--d-wireframe-tunnel-bend-34858144.jpg

Such a path clearly exists, but how to usefully process either the vertices alone or the polygons/edges using them to calculate it?
Advertisement
Well, if you have a pipe made of consecutive rings, then average the positions of all vertices belonging to each ring and you get a point in the middle of them all. Repeat for whole pipe, connect the midpoints and you have a path through.
You will probably want to generate a NavMesh for the walkable areas of your scene. Try searching the AI forums for more info.

This topic is closed to new replies.

Advertisement