Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5980 in orxonox.OLD for branches/height_map/src/world_entities


Ignore:
Timestamp:
Dec 7, 2005, 9:52:29 PM (19 years ago)
Author:
bottac
Message:

!testing branch height_map!


Please adopt the String on line 46 in file:
branches/height_map/src/world_entities/terrain.cc
according to your setup. The file referred to must be a 8-Bit Bitmap!

Terrain::Terrain (const TiXmlElement* root)
{
Change PATH

HeightMap * hm = new HeightMap("~/svn/data/pictures/heightmapHello.bmp");


Sorry!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/world_entities/player.cc

    r5940 r5980  
    277277  /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */
    278278  /* calculate the direction in which the craft is heading  */
    279   Vector direction (1.0, 0.0, 0.0);
     279  Vector direction (20.0, 0.0, 0.0);
    280280  //direction = this->absDirection.apply (direction);
    281281  Vector orthDirection (0.0, 0.0, 1.0);
     
    289289  if( this->bLeft )
    290290  {
    291     accel -=(orthDirection);
     291    accel -=(orthDirection)*20;
    292292    rot +=Vector(1,0,0);
    293293    rotVal -= .4;
     
    295295  if( this->bRight )
    296296  {
    297     accel += orthDirection;
     297    accel += orthDirection*20;
    298298    rot += Vector(1,0,0);
    299299    rotVal += .4;
Note: See TracChangeset for help on using the changeset viewer.