motion trail and irrwizard

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
elektrikal
Posts: 17
Joined: Tue Sep 26, 2006 8:01 am

motion trail and irrwizard

Post by elektrikal »

hello

i check this post:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2179

im using irrwizard and i want to implement that.
how and where should i do it??


many thx in advance.
Sorry about my bad english.thanks.
raven_coda
Posts: 89
Joined: Thu Aug 17, 2006 8:11 pm
Location: Salt Lake City, UT, USA
Contact:

Post by raven_coda »

I haven't played with that code at all but it should work just fine with irrWizard. In you gamestate update just paste that in and make the following changes

replace SceneMgr with pManager->getSceneManager()

replace TPlayer->bJumping || TPlayer->bRunning with whatever condition you want to turn it on or off

replace TPlayer->MeshNode with the pointer to the node you want to have the trail.

The last step might be the hardest because you'll have to make sure you have a pointer to the IAnimatedMeshSceneNode that you want the trail on.
Definition of an Upgrade: Take old bugs out, put new ones in.
Post Reply