Terrain maps and collision detection
Terrain maps and collision detection
I'm having trouble using the collision detection work on terrain maps. It seems I fall through every time. I've looked at the tutorials and thought I setup it up correctly but I guess not. I think a more precise example would be all I need. I don't think anyone wants to read my code so maybe somebody could just show what code I'd have to add to the terrain map example to make it collision detect with the camera. Thanks in advance for the help.
I think the collision sphere falls through the triangles in the terrain if its too big, but this code is much faster than using collision detection on the mesh-
http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=63079
http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=63079
Code: Select all
I think the collision sphere falls through the triangles in the terrain if its too big
I dont know if thats the whole story?
In that referenced adv-snippet there is xml-load intermingled in the code..
eg
getPixel((s32)XMLimportXpos,(s32)XMLimportYpos)
is it imposible to use this without that xml stuf..
(i'm definately not in adv. forum at this moment in time.. xml is not an needed option right now)
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |