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.
motion trail and irrwizard
-
- Posts: 17
- Joined: Tue Sep 26, 2006 8:01 am
motion trail and irrwizard
Sorry about my bad english.thanks.
-
- Posts: 89
- Joined: Thu Aug 17, 2006 8:11 pm
- Location: Salt Lake City, UT, USA
- Contact:
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.
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.