weapon

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.
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

Post by jimowns »

i fixt it :D , thank you all
zeno60
Posts: 342
Joined: Sun May 21, 2006 2:48 am
Location: NC, USA
Contact:

Post by zeno60 »

jimowns wrote:this code is dont giveing me errors but its keep dropping my weapon .

Code: Select all

gunnode->setParent(gunnode); 
Well take a look at that code. Your setting it as its own parent. :oops: You need the camera to be the parent of the gun, which makes the gun a child of the parent, therefore it inherits all movement of that camera as if it were its own.
jimowns
Posts: 62
Joined: Thu Sep 28, 2006 5:28 pm
Location: X-Gamers

Post by jimowns »

i got it now :) thanks zeno60
Post Reply