Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2007, 5:14:19 PM (17 years ago)
Author:
snellen
Message:

Added Raycollision method to the BspManager

File:
1 edited

Legend:

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

    r10643 r10680  
    16961696
    16971697
     1698float BspManager::checkCollisionRay(Vector StartPoint, Vector Direction, float length )
     1699{
     1700  Direction.normalize(); // Oder besser vor dem Fkt-Aufruf schon normalisieren
     1701  this->outputStartsOut = true;
     1702  this->outputAllSolid = false;
     1703  this->outputFraction = 1.0f;
     1704  this->inputStart =  StartPoint;
     1705  Vector End =   StartPoint + (Direction)*length;
     1706  this->inputEnd =   End;
     1707
     1708  this->checkCollisionRayN(this->root, 0.0f, 1.0f, &StartPoint, &(End) );
     1709
     1710  return (this->outputFraction * length);
     1711
     1712}
     1713
     1714
    16981715
    16991716/**
Note: See TracChangeset for help on using the changeset viewer.