Page 3 of 3

Posted: Thu Dec 21, 2006 7:14 pm
by jimowns
i fixt it :D , thank you all

Posted: Thu Dec 21, 2006 7:20 pm
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.

Posted: Thu Dec 21, 2006 7:53 pm
by jimowns
i got it now :) thanks zeno60