Getting a mesh to walk on a terrain

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
adam23
Posts: 14
Joined: Fri Jun 16, 2006 6:37 pm
Contact:

Getting a mesh to walk on a terrain

Post by adam23 »

I hope someone can help me with this because I have searched everywhere. I am looking for the best way to get a mesh to walk on a terrain. Here is what I have for my collision response animator:

Code: Select all

	scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
		selector, node, core::vector3df(60,100,60),
		core::vector3df(0,-1,0), 
		core::vector3df(0,50,0));
	node->addAnimator(anim);
	anim->drop();
What happens is when the mesh gets to a hill it stops. Can someone please point me in the right direction.

Thanks in advance
Adam
Post Reply