Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8524 in orxonox.OLD for branches/bsp_model/src/lib/graphics


Ignore:
Timestamp:
Jun 16, 2006, 11:40:03 AM (18 years ago)
Author:
bottac
Message:

Worked on ground walk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc

    r8490 r8524  
    942942  this->outputFraction = 1.0f;
    943943 
    944   Vector position = worldEntity->getAbsCoor();
     944
    945945
    946946
     
    958958  dest.z  += forwardDir.z;
    959959  */
    960 
    961   dest = worldEntity->getAbsCoor() - upDir*40.0;
     960  Vector position = worldEntity->getAbsCoor() + upDir*5.0f ;
     961  dest = worldEntity->getAbsCoor() - upDir*40.0f; //
    962962  Vector out = dest;
    963963
     
    986986//   position1.debug();
    987987
     988  if(!this->outputStartsOut )
     989  {
     990    this->collPlane = new plane;
     991    this->collPlane->x = 0.0f;
     992    this->collPlane->y = 0.0f;
     993    this->collPlane->z = 0.0f;
     994    collision = true;
     995  }
     996  else
     997  {
     998   
     999   
     1000   
     1001   
    9881002  if( this->outputFraction == 1.0f)
    9891003  {
    990     if(this->outputAllSolid)
     1004    if(this->outputAllSolid )
    9911005    {
    9921006      this->collPlane = new plane;
    993       this->collPlane->x = 1.0f;
     1007      this->collPlane->x = 0.0f;
    9941008      this->collPlane->y = 0.0f;
    9951009      this->collPlane->z = 0.0f;
     
    10131027  }
    10141028
     1029 
     1030  }
    10151031  // Return the normal here: Normal's stored in this->collPlane;
    10161032  if( collision) {
     
    10181034    worldEntity->registerCollision(this->parent, worldEntity, Vector(this->collPlane->x, this->collPlane->y, this->collPlane->z), out);
    10191035  }
     1036  else  worldEntity->registerCollision(this->parent, worldEntity, Vector(0.0, 1.0, 0.0), dest);
    10201037
    10211038}
Note: See TracChangeset for help on using the changeset viewer.