Changeset 2415 for GTP/trunk/App/Demos/Illum/Ogre/src/Common
- Timestamp:
- 06/06/07 10:25:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/FPSPlayer.cpp
r2413 r2415 112 112 { 113 113 mCharacterMeshEntity = mSceneManager->createEntity(mName, meshname); 114 mCharacterMeshEntity->setCastShadows( true);114 mCharacterMeshEntity->setCastShadows(false); 115 115 mMeshScale = meshscale; 116 116 mCurrentAnimState = PLAYERANIMSTATE_STAND; … … 177 177 178 178 mWeaponEntity = mSceneManager->createEntity(mName + "_Weapon", meshname); 179 mWeaponEntity->setCastShadows(false); 179 180 mWeaponAttachBone = mCharacterMeshEntity->getSkeleton()->getBone(attachBoneName); 180 181 mWeaponNode = mCharacterMeshEntity->getParentSceneNode()->createChildSceneNode(mName+"_WeaponNode"); … … 342 343 { 343 344 float animspeed = 1.2; 344 if(mCurrentAnimState == PLAYERANIMSTATE_WALK && !mRunning) 345 animspeed /= 2; 345 if(mCurrentAnimState == PLAYERANIMSTATE_WALK && mRunning) 346 animspeed *= 1.5; 347 if(mCurrentAnimState == PLAYERANIMSTATE_ATTACK) 348 animspeed *= 2.0; 346 349 347 350 mCharacterMesh_AnimState->addTime(dt*animspeed); … … 351 354 352 355 float movecameraup = 0; 353 if(mDebug)movecameraup = 1.0;356 if(mDebug)movecameraup = 20.0; 354 357 355 358 if(mMoving)
Note: See TracChangeset
for help on using the changeset viewer.