FPS Camera Tutorial
-
- Posts: 32
- Joined: Sat Sep 18, 2004 11:53 pm
- Location: Portland, Texas, USA
fps camera tutorial
I couldn't get the weapon to be there,i copyed the tutorial code word for word,but it is not there althougth the code compiled without any errors so i don't know what the ' ' is wrong with the code!!
Not sure if it helps guys, but the code i use to show my weapon in fps is
It displays it in the bottom right corner of the screen.
Hope this helps...
Code: Select all
scene::IAnimatedMesh* weapon = smgr->getMesh("../../Static Meshes/assaultrifle.3ds");
scene::IAnimatedMeshSceneNode* weapon1 = smgr->addAnimatedMeshSceneNode( weapon );
weapon1->setParent(camera);
weapon1->setPosition(core::vector3df(72,-80,110));
Hope this helps...