Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8195 in orxonox.OLD for branches/bsp_model/src/world_entities


Ignore:
Timestamp:
Jun 7, 2006, 3:14:46 PM (19 years ago)
Author:
bottac
Message:

merged back from old branch.

Location:
branches/bsp_model/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/bsp_entity.cc

    r8186 r8195  
    9696void BSPEntity::tick(float time)
    9797{
    98 
     98  this->bspManager->tick(time);
    9999}
    100100
  • branches/bsp_model/src/world_entities/world_entity.cc

    r8190 r8195  
    499499
    500500  Vector v = this->getAbsDirX();
    501   v.x *= 10;
    502   v.y *= 10;
    503   v.z *= 10;
    504   Vector u = this->getAbsDirY();
    505 
    506   if(feet.x == (u.x+this->getAbsCoor().x) &&  feet.y == u.y +this->getAbsCoor().y && feet.z == this->getAbsCoor().z)
     501  v.x *= 10.1;
     502  v.y *= 10.1;
     503  v.z *= 10.1;
     504  Vector u = Vector(0.0,-20.0,0.0);
     505
     506         
     507  if(!(this->getAbsCoor().x == ray_2.x && this->getAbsCoor().y == ray_2.y && this->getAbsCoor().z == ray_2.z) )
    507508  {
    508509
    509510  this->setAbsCoor(ray_2 - v);
    510   }
    511   else
     511
     512  }
     513    else
    512514  {
    513515    if(ray_1.x == this->getAbsCoor().x + v.x && ray_1.y == this->getAbsCoor().y + v.y + 0.1 && ray_1.z ==this->getAbsCoor().z + v.z)
     
    519521
    520522  }
     523   
     524   
    521525}
    522526
Note: See TracChangeset for help on using the changeset viewer.