Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8329 in orxonox.OLD for branches/bsp_model/src/lib


Ignore:
Timestamp:
Jun 12, 2006, 7:54:50 PM (18 years ago)
Author:
bottac
Message:

colision detection again.

File:
1 edited

Legend:

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

    r8318 r8329  
    873873void BspManager::checkCollision(WorldEntity* worldEntity)
    874874{
    875   Vector position = worldEntity->getAbsCoor();
     875  Vector position = worldEntity->getLastAbsCoor();
    876876
    877877
     
    881881  Vector upDir = worldEntity->getAbsDirY();
    882882  Vector dest = position;
    883 
     883  /*
    884884  dest.x  += forwardDir.x;
    885885  dest.y  += forwardDir.y;
    886886  dest.z  += forwardDir.z;
     887  */
     888 
     889  dest = worldEntity->getAbsCoor();
    887890  Vector out = dest;
    888891
     
    913916    this->checkCollisionRayN(this->root,0.0f,1.0f, &position1, &dest1 );
    914917    if(this->outputFraction == 1.0f)  out1 = dest;
    915     else {
     918    else {(
    916919      collision = true;
    917920      out1.x = position1.x + (dest1.x -position1.x) * this->outputFraction;
     
    934937
    935938    float height = 40;
    936 
     939    this->outputAllSolid = false;
    937940
    938941    this->checkCollisionRayN(this->root,0.0f,1.0f, &position, &dest );
Note: See TracChangeset for help on using the changeset viewer.