rotate weapon according to camera ....

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.
Post Reply
Pulkit Jain
Posts: 4
Joined: Mon Feb 05, 2007 12:46 pm

rotate weapon according to camera ....

Post by Pulkit Jain »

hi !!! i wanna rotate my weapon according to the camera .. so what should i do to implement this .... and along with it i want that the gun should be projected in front of the camera .... so plz help me out with this also ....
lester
Posts: 86
Joined: Mon Jan 29, 2007 3:33 pm

Post by lester »

It's simple - you have to create a weapon scene node as a child of camera scene node. Then you have just to setup an initial position/rotation of the weapon, the other transformations will be performed by irrlicht.
Pulkit Jain
Posts: 4
Joined: Mon Feb 05, 2007 12:46 pm

Post by Pulkit Jain »

hi !!! i tried this thing out but its not working .... the problem is that it doesn't shows the gun even once .... so if u could plz give me some code snippet, i would be really thakful to u .....
Post Reply