problem Billboard's position

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.
klikli234
Posts: 97
Joined: Tue Sep 07, 2010 10:52 am

Post 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]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
Post Reply