has no member...

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
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

has no member...

Post by arnir »

code:

Code: Select all

IAnimatedMesh* mesh = smgr->getMesh( "model.ms3d" );
IAnimatedMeshSceneNode* gunNode = smgr->addAnimatedMeshSceneNode( mesh );
and i want, if animation end, set animation speed to 0

Code: Select all

if(gunNode->getEndFrame()== gunNode->getFrameNr())
                {
                 gunNode->setAnimationSpeed(0);
                 }                       
but compiler write error

class irr::scene::IAnimatedMeshSceneNode' has no member named 'getEndFrame'

but this class has getEnd member...
thanks
programmer is bad designer
designer is bad programmer
mqrk
Posts: 16
Joined: Mon Dec 10, 2007 5:55 am

Post by mqrk »

Which version of irrlicht are you using? It looks like that function was added in version 1.3
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

Post by arnir »

mqrk wrote:Which version of irrlicht are you using? It looks like that function was added in version 1.3
oh yes, i using 1.2
thx
programmer is bad designer
designer is bad programmer
Post Reply