hmm, ive been trying to implement collision with importing a .irr file. Ive been able to implement OCT_TREES but i cant get it right with ESNT_TERRAIN...
I'm pretty sure that line is your problem. If your scene has a terrain scene node, you create a new terrain scene node and create collision information for that one. Later, you will process the new terrain scene node. When processing that one you will create a new one and give it collision information, and again, and again, and again.
If you are going to try to do collision using Irrlicht's primitive collision system, you should probably see the the original code I posted here and here. It worked with terrains.
Thanks a lot Vitek! it now will load mesh and terrain collision. But there is a problemo. I set up a FPSCamera with some gravity, but when i try to walk, its really bumpy, unrealistic, and sometimes i get stuck in the terrain. How could i make it so the collision is nice and smooth, like counterstrike, or quake?
That is likely a result of the collision response animator implementation and the gravity factor that you've set. You can try to mess with the factors a bit, but I doubt that you'll get anything that is totally satisfying.
fitfool wrote:Thanks a lot Vitek! it now will load mesh and terrain collision. But there is a problemo. I set up a FPSCamera with some gravity, but when i try to walk, its really bumpy, unrealistic, and sometimes i get stuck in the terrain. How could i make it so the collision is nice and smooth, like counterstrike, or quake?
Yeah the terrain is pretty steep and mountainy. When i make my camera really large, (the bounding box), its a lot smoother. But for some reason, i cant Jump when im on the terrain. the camera looks like its bouncing up and down really fast.