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.
-
d7bh
- Posts: 2
- Joined: Fri Jun 10, 2016 1:58 pm
Post
by d7bh »
Hello,
I'm new with Irrlicht and I want to add skeletal animation to my model but it won't work
Code: Select all
IAnimatedMesh* meshplayer = smgr->getMesh("player.b3d");
IAnimatedMeshSceneNode* playernode = smgr->addAnimatedMeshSceneNode(meshplayer);
playernode->setJointMode(EJUOR_CONTROL);
playernode->getJointCount();
//before smgr->drawAll();
playernode->getJointNode(5);
playernode->setRotation(core::vector3df(3, 2, 1));
playernode->animateJoints();
Can I find somewhere tutorial for this? Thanks for help.
-
thanhle
- Posts: 325
- Joined: Wed Jun 12, 2013 8:09 am
Post
by thanhle »
Angle in degree. Set it to larger values.
-
d7bh
- Posts: 2
- Joined: Fri Jun 10, 2016 1:58 pm
Post
by d7bh »
I think error is in my model that I created with Blender and not in the code because ninja.b3d works perfectly
sorry for spam