Camera as guns parent?
Posted: Tue Jan 11, 2005 2:39 pm
Hi
Im using Irrlicht 0.7 and Visual Basic .NET, but dont let that scare you.
Any answer, even without code and just logic is welcome.
Im developing a 3D-Shooter game, not original but its ment as a test
project to get to know Irrlicht. Actually im doing pretty good cuz i've overcome a lot of problems because most of the stuff isn't implemented
yet in the .NET version and development is still at 2% the last 2 months![Sad :(](./images/smilies/icon_sad.gif)
But i've got a question:
I would like to link my 3D Rifle to the camera, just like in any other 3DShooter. So when you walk, it moves along. I've read alot about settings
its parent, and i've even used the gun-placer-tool that i've found on the forum. But I cant get it work...
- When I set the parent of the gun-object to the camera, and run the game it just wont appear... its gone.
- When I set NO parent to the gun it appears at the location I've set it to, just normal.
Maybe this problem is caused because the position of the gun, when the camera is its parent, is out of the viewport... so its "dragging around behind the camera, behind my back
". Is this possible? and if so.. how do I set up the gun to appear as in any other 3D Shooter?
Thanks already!
Im using Irrlicht 0.7 and Visual Basic .NET, but dont let that scare you.
Any answer, even without code and just logic is welcome.
Im developing a 3D-Shooter game, not original but its ment as a test
project to get to know Irrlicht. Actually im doing pretty good cuz i've overcome a lot of problems because most of the stuff isn't implemented
yet in the .NET version and development is still at 2% the last 2 months
![Sad :(](./images/smilies/icon_sad.gif)
But i've got a question:
I would like to link my 3D Rifle to the camera, just like in any other 3DShooter. So when you walk, it moves along. I've read alot about settings
its parent, and i've even used the gun-placer-tool that i've found on the forum. But I cant get it work...
- When I set the parent of the gun-object to the camera, and run the game it just wont appear... its gone.
- When I set NO parent to the gun it appears at the location I've set it to, just normal.
Maybe this problem is caused because the position of the gun, when the camera is its parent, is out of the viewport... so its "dragging around behind the camera, behind my back
![Razz :P](./images/smilies/icon_razz.gif)
Thanks already!