Page 1 of 1

has no member...

Posted: Sun Dec 23, 2007 8:31 pm
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

Posted: Mon Dec 24, 2007 2:32 am
by mqrk
Which version of irrlicht are you using? It looks like that function was added in version 1.3

Posted: Mon Dec 24, 2007 11:30 am
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