Ignore:
Timestamp:
06/06/07 10:25:35 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/FPSPlayer.cpp

    r2413 r2415  
    112112{ 
    113113        mCharacterMeshEntity = mSceneManager->createEntity(mName, meshname); 
    114         mCharacterMeshEntity->setCastShadows(true); 
     114        mCharacterMeshEntity->setCastShadows(false); 
    115115        mMeshScale = meshscale; 
    116116        mCurrentAnimState = PLAYERANIMSTATE_STAND; 
     
    177177         
    178178        mWeaponEntity = mSceneManager->createEntity(mName + "_Weapon", meshname); 
     179        mWeaponEntity->setCastShadows(false); 
    179180        mWeaponAttachBone = mCharacterMeshEntity->getSkeleton()->getBone(attachBoneName); 
    180181        mWeaponNode = mCharacterMeshEntity->getParentSceneNode()->createChildSceneNode(mName+"_WeaponNode");     
     
    342343        { 
    343344                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; 
    346349 
    347350                mCharacterMesh_AnimState->addTime(dt*animspeed);         
     
    351354         
    352355        float movecameraup = 0; 
    353         if(mDebug)movecameraup = 1.0; 
     356        if(mDebug)movecameraup = 20.0; 
    354357 
    355358        if(mMoving) 
Note: See TracChangeset for help on using the changeset viewer.