getting model to sit on terrain with libmini
Posted: Mon Jan 17, 2005 12:43 am
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!
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!