Page 2 of 2

Posted: Sat Apr 30, 2011 12:39 am
by klikli234

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);
new screenshot




Image[/code]

Posted: Sat Apr 30, 2011 9:49 am
by hybrid
Well, why do you a) move it around and b) rotate a billboard? Moreover, both screenshots (left and right) seem to show the flash at the same relative position. So where's the problem. Just don't move it and it should be attached to the gun as desired.