Changeset 2411 for GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include
- Timestamp:
- 06/05/07 14:27:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2405 r2411 80 80 { 81 81 gFPSPlayer->processKeyInputs(mInputDevice); 82 82 /* 83 83 static float lastTime = 0; 84 84 static Timer* t = Root::getSingleton().getTimer(); … … 103 103 throwSphere->addForce(mCamera->getDirection()*200); 104 104 105 } 106 107 108 //return ExampleFrameListener::processUnbufferedKeyInput(evt);105 }*/ 106 107 108 // return ExampleFrameListener::processUnbufferedKeyInput(evt); 109 109 110 110 if( mInputDevice->isKeyDown( KC_ESCAPE) ) … … 133 133 { 134 134 gFPSPlayer->processMouseInputs(mInputDevice); 135 // return ExampleFrameListener::processUnbufferedMouseInput(evt); 135 136 return true; 136 137 } … … 214 215 215 216 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 216 mCamera->setPosition(-20,3,0);217 //mCamera->setPosition(-20,3,0); 217 218 //mCamera->setPosition(0,100,0); 218 219 //mCamera->lookAt(0,-1,0); 219 mCamera->setFOVy(Radian(Degree( 80)));220 mCamera->setNearClipDistance(0.0 1);220 mCamera->setFOVy(Radian(Degree(90))); 221 mCamera->setNearClipDistance(0.001); 221 222 mCamera->setFarClipDistance(150); 222 223 // Set ambient light … … 307 308 mAnimState->setEnabled(true);*/ 308 309 309 //PlayerCharacter::frameListenerPriority = 20;310 PlayerCharacter::frameListenerPriority = 20; 310 311 gFPSPlayer = new FPSPlayer(NXScene, mSceneMgr, Vector3(0.5, 1.8, 0.3), Vector3(5, 10, 15), 1.6, mCamera, false); 311 312 //gFPSPlayer->addPlayerMesh("FPSarm.mesh", 0.02, true); 312 313 //gFPSPlayer->addWeaponModel("sword.mesh", "joint28"); 313 /* 314 314 315 PlayerCharacter* troll = new PlayerCharacter("troll1", NXScene, mSceneMgr, Vector3(1.5, 3.0, 1.2), Vector3(5, 10, 5), false); 315 troll->addPlayerMesh("troll.mesh", 0.05, false);*/ 316 troll->addPlayerMesh("troll.mesh", 0.05, false); 317 316 318 for(float i = 0; i< 7; i++) 317 319 {
Note: See TracChangeset
for help on using the changeset viewer.