Clone

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
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Clone

Post by BirdaoGwra »

Hi,

Code: Select all

IAnimatedMeshSceneNode* node = static_cast<IAnimatedMeshSceneNode>(original->getMesh()->clone());
Now if I clone two nodes and apply animation on first node, it will also animate the second node? How do I apply different animation?
Edit: this code is working fine, the problem is

Code: Select all

node->setTransitionTime(.02f);
With this code, same animation applies to all. Any suggestion!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Clone

Post by CuteAlien »

Maybe you can use IMeshManipulator::createMeshCopy. Or IMeshManipulator::createAnimatedMesh.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
BirdaoGwra
Posts: 11
Joined: Sat Jan 30, 2016 5:47 am

Re: Clone

Post by BirdaoGwra »

That will work. Thank you.
Post Reply