colision responde animator

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
ShadowOfTheKobierzyn
Posts: 10
Joined: Thu Mar 29, 2007 3:13 pm
Location: Poland

colision responde animator

Post by ShadowOfTheKobierzyn »

I wont to create colision responde animator for map, and some model puted on it. If i try to do that:
camera->addAnimator(anim);
camera->addAnimator(anim2);
it didn't work.
kompromis
Posts: 98
Joined: Mon Sep 11, 2006 2:36 pm
Location: sweden/stockholm

Post by kompromis »

check the tutorials
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

You want to use the IMetaTriangleSelector. You can get one by calling Scenemanager->addMetatriangleSelector(), i think.
After you've obtained one, you pass some triangle selectors to the metatriangleselector, and uses the metatriangleselector when you create the animator. Then you only need one animator.
When you add a couple of triangle selectors to the metatriangleselector, all of them are usable trought the single metatriangleselector.
If you don't have anything nice to say, don't say anything at all.
Post Reply