Searched the SDK and found command to do this.
Here is my implementation:
Model is the IAnimatedSceneNode
MeshModel is an IAnimatedMesh
Before doing this, I do a quick test to see if it's defined.
Code: Select all
IMeshManipulator * manip = Device->getSceneManager()->getMeshManipulator();
manip->scaleMesh(ModelMesh->getMesh(0),core::vector3df(4.0f,4.0f,4.0f));
manip->recalculateNormals(ModelMesh->getMesh(0),true);
Model->remove();
Model=Device->getSceneManager()->addAnimatedMeshSceneNode(ModelMesh);