Hello guys.
I'm making a first person shooter, but I don't know how to walk around with a gun like in other games (for example Half-Life). I'm so far that the gun moves with the camera, but it doesn't rotate with it and it stands in the wrong way.
I've checked the forum, but can't really find what I need. I was hoping if somebody could show me exactly how to do it, or give me a link to another FPS game based on Irrlicht which has a gun in it.
Thanks in advance.
First Person view like in for ex. Half-Life
Thanks for the answers. I had this code, but I was using version 0.4 instead of 0.4.2. The gun turns with the camera perfectly now
, but now I have some other problems again
:
- I've loaded a bitmap with a light node (like in the SpecialFX example), but now certain walls are totally black and while turning the camera, the light acts strange. My level flickers black and than it's normal again. (it's like a disco if you know what I mean).
That's why I was using 0.4 because I don't have that problem there, but now I have no choice but using 0.4.2.
Would somebody know the solution for this problem?
- I've loaded a bitmap with a light node (like in the SpecialFX example), but now certain walls are totally black and while turning the camera, the light acts strange. My level flickers black and than it's normal again. (it's like a disco if you know what I mean).
That's why I was using 0.4 because I don't have that problem there, but now I have no choice but using 0.4.2.
Would somebody know the solution for this problem?