I´m trying to point a barrel to some target. In order to do so I´ve got a bone. Now I´m trying to rotate that. But nothing happens.
Let´s say I´ve got a scene::IBoneSceneNode *b which got it´s value by node->getJointNode("boneName"); It does get a valid value, so there is a bone with that name in the animation file (.X).
Now I tried
Code: Select all
while(device->run())
{
b->setRotation(b->getRotation() + vector3df(1, 0, 0));
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
gui->drawAll();
driver->endScene();
}
I tried to set b->setRotation(vector3df(0,0,0)); before the loop, but all results in the same: after 1 iteration true the loop, values stay the same, namely:
This doesn´t change any more.{,,Irrlicht.dll}((*(irr::scene::ISceneNode*)(&(*(irr::scene::IBoneSceneNode*)(&*(irr::scene::CBoneSceneNode*){*}b))))).RelativeRotation {X=180.10611 Y=89.410172 Z=179.71519 } irr::core::vector3d<float>
Furthermore I noticed that rotationHint is set to -1. Is this a problem?
A lot of questions, I just hope someone can help me.
Thanks,
badday