It's a smart library to help in generating paths for createFollowSplineAnimator.
This is screenshot how it works:
http://img51.imageshack.us/img51/3596/screenshot2iw.png
Little tutorial how to use it:
1. Include header file and create instance of PathCreator
Constructor params:
driver - pointer to driver (needed to draw a line on scene)
node - usually camera, from this node code will get point positions while addPath() is called (node->getPosition())
filename - path to output file, where waypoints should be saved
arrayname - name of array to create in new file
2. Add calls to basic methods from PathCreator
Usually attached to IEventManager key-down events, but you can use it as you want.
addPath() - adding a new point to path
delPath() - remove last point from path
conPath() - connect first point and last point of path
save() - save path to a output file
3. Add drawPath() to main render loop
REMEMBER! drawPath() must be after beginScene() method!
And it's everything !
You can also use some optional functions to configure PathCreator:
setColor(SColor) - set path color
setNamespaceLvl(int) - set namespace level generated in output file, possible values is:
0 - no namespace (eg. vector3df() )
1 - core:: (eg. core::vector3df() )
2 - irr::core:: (eg. irr::core::vector3df() )
This is first version of PathCreator and not last!
I have some more ideas for this project, but don't have time now to implement them
![Sad :(](./images/smilies/icon_sad.gif)
Source code and example is here (you will need map-20kdm2.pk3 from Irrlicht examples media to run demo):
http://tecan.ath.cx/tecan/share/downloa ... ile=117201
(thanks Tecan for hosting!
![Smile :)](./images/smilies/icon_smile.gif)
UPDATE:
New download link:
http://www.mediafire.com/?mnbr6czuz4d8d7n