HI, The code Travis gave me seem to be useful for the new users, This could help new Irrlicht user get their IRR files with collision and hopefully get more ART oriented people in the Irrlicht community.
I would propose that this code be put as a new function in the IRRlicht library.
Here is the thread: http://irrlicht.sourceforge.net/phpBB2/ ... 197#132197
The code I've made is simple (Based on Travis) instructions, it check the scene graph then add all the OCCTREES to the METASELECTOR.
So, having collision working with the environnement could be done with this, with only 2-3 lines of code. The base is there and it would only need to be adapted and cleaned to be put in the library. (Terrain detect and add TerraintriangleSelector to the metaSelector could be good too). This would really be useful. Could be renamed as: IAddOctreeMeta(); or something simpler.
Addon to IRRLicht for helping collisions.
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact: