Page 1 of 1

getting model to sit on terrain with libmini

Posted: Mon Jan 17, 2005 12:43 am
by red82
I am using the libmini library and the CLMTerrainSceneNode class that is discussed here: http://irrlicht.sourceforge.net/phpBB2/ ... ni&start=0
My problem is that my model of the faerie will not sit on the surface of the terrain. I initially set them high above, and let gravity drop them to the surface, but it always comes to rest with a large gap between the model and terrain. I tried both irrlicht's physics and newton physics engine for gravity. I reread that post and I believe it says to use CTERRAINHEIGHTANIMATOR.h to place the model on the terrain. Does anyone have example code on how to use this header file? I know c++ but I am not good with implementing header files.

Thanks!

Posted: Mon Jan 17, 2005 2:03 am
by Spintz
It most likely has something to do with the actual model. Check what the bounding box of the model is.

Posted: Wed Feb 16, 2005 3:59 am
by kaeles-notlogged
you might look at the "elipse" size on the irrlicht collision detection, you have to make it the same size of the model else it will set at a weird hieght or sink into the terrain...


i believe you set this when you call createCollisionAnimator or whatever....