I want to add a gun model to one FPS camera...like in the normal fps games...the FPS camera is named "camera"
I am sorry for the "write my code" question...
Drawing a gun model with a FPS camera
Please use the search feature on the forums as this question has been asked numerous times:
http://irrlicht.sourceforge.net/phpBB2/ ... d%20camera
http://irrlicht.sourceforge.net/phpBB2/ ... d%20camera
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Simply put, the mesh is loaded in front of the camera, you want it to stay there, it could even be an arm attached to a gun floating in the air, yet the player would never know it. So the parent is the camera, holding the child.
Programming Blog: http://www.uberwolf.com
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Re: Drawing a gun model with a FPS camera
That's great, you go ahead and do that.Ivo Georgiev wrote:I want to add a gun model to one FPS camera...like in the normal fps games...
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Posts: 27
- Joined: Wed Dec 12, 2007 7:05 pm
Thanks, it worked...I am sorry...I wasnt able to find the search form...You are forgeting something : "gunnode->setPosition(core::vector3df(something , something1 , something2));"
I cant make the gun visible...It is aways behind the camera I cant put the right values in "something", "something1", "something2"
I cant make the gun visible...It is aways behind the camera I cant put the right values in "something", "something1", "something2"
-
- Posts: 27
- Joined: Wed Dec 12, 2007 7:05 pm