Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6872 for code/branches


Ignore:
Timestamp:
May 10, 2010, 2:20:21 PM (15 years ago)
Author:
edwind
Message:

commit by ed

Location:
code/branches/fps
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/data/levels/fps_test.oxw

    r6867 r6872  
    2121    <Light type=directional position="0,-100000,0" direction="0.02, -1, 0.05" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
    2222
    23   <StaticEntity position="0,-10000,0" direction="0,-1,0" collisionType=static mass=100000 >
     23  <StaticEntity position="0,-10000,0" direction="0,-1,2" collisionType=static mass=100000 friction=0.01 >
    2424      <attached>
    2525        <Model position="0,0,0" mesh="cube.mesh" scale3D="10000,10000,1000" />
  • code/branches/fps/data/levels/old/physicstest2.oxw

    r6417 r6872  
    1313   ambientlight = "0.5, 0.5, 0.5"
    1414   skybox       = "Orxonox/Starbox"
     15   gravity      = "0,-50,0"
    1516   negativeWorldRange = "(-100000, -100000, -100000)"
    1617   positiveWorldRange = "( 100000,  100000,  100000)"
  • code/branches/fps/data/levels/templates/fps.oxt

    r6867 r6872  
    1212   initialhealth     = 100
    1313
    14    primaryThrust     = 100;
    15    auxilaryThrust    = 30;
    16    rotationThrust    = 25;
     14   primaryThrust     = 0;
     15   auxilaryThrust    = 0;
     16   rotationThrust    = 0;
    1717
    1818   collisionType     = "dynamic"
     
    2020   linearDamping     = 0.7
    2121   angularDamping    = 0.9999999
     22   friction          = 0.01
    2223  >
    2324 <!--   <attached>
  • code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.cc

    r6867 r6872  
    7979        this->setConfigValues();
    8080        this->registerVariables();
     81       
    8182    }
    8283
     
    122123        if (this->hasLocalController())
    123124        {
    124            
     125            this->setOrientation(savedOrientation_);
     126           
    125127            thistickboost=false;
    126128           
     
    150152
    151153            this->yaw_ = this->pitch_ = this->roll_ = 0;
     154           
     155            //Quaternion q=this->getOrientation();
     156            //if( q.y<0.99 ) this->setOrientation(q.w, q.x, 1.0, q.z);
     157            this->setAngularVelocity(0.0, 0.0, 0.0);
     158            savedOrientation_=this->getOrientation();
    152159        }
    153160
  • code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.h

    r6867 r6872  
    8888            bool isfloor;
    8989            bool thistickboost;
     90            Quaternion savedOrientation_;
    9091    };
    9192}
Note: See TracChangeset for help on using the changeset viewer.