Posted: Sat Apr 30, 2011 12:39 am
Code: Select all
//new flash updata position code
vector3df flash3d = flashbonescenenode->getPosition();
flash3d.Z -= 40.f;
flash3d.X -= 20.f;
flash3d.Y += 5.f;
flash3d.rotateXZBy(-boneNode1->getRotation().X);
flash3d.rotateXYBy(boneNode2->getRotation().Y);
nodemuzzleflash->setPosition(flash3d);
[/code]