Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2006, 12:54:38 PM (18 years ago)
Author:
bottac
Message:

worked on collision detection

File:
1 edited

Legend:

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

    r7395 r7563  
    1717
    1818
    19 // FORWARD DECLARATION
     19// FORWARD DECLARATIONS
    2020class  BspFile;
    2121class BspTreeLeaf;
     
    2424class set;
    2525struct face;
     26struct brush;
    2627
    2728class BspManager
     
    3334  // Functions
    3435  void draw();
    35   void draw_leaf();
    36   void draw_debug_face(int Face);
     36  void draw_debug_face(int Face);
    3737  void draw_face(int Face);
    3838  void draw_patch(face* Face);
     
    4141private:
    4242  // Functions
     43  BspTreeNode* getLeaf(BspTreeNode*  node,   Vector* cam) ;  //!< Traverses the tree
     44  void  checkCollision(BspTreeNode* node, Vector* cam);
     45  void  checkCollisionRay(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end);
     46  void  checkBrushRay(brush* curBrush);
     47  void drawDebugCube(Vector* cam);
     48  bool isAlreadyVisible(int Face);
     49  void addFace(int Face);
     50 
     51  // Data
    4352  BspFile*  bspFile;
    4453  BspTreeNode* root;
    45   BspTreeNode* getLeaf(BspTreeNode*  node,   Vector* cam) ;  //!< Traverses the tree
    46   void  checkCollision(BspTreeNode* node, Vector* cam);
    47   void drawDebugCube(Vector* cam);
    4854  Vector cam;
    4955  Vector ship;
    5056  Vector  viewDir;
     57  int lastTex;
     58 
     59  //obsolete
     60  bool  outputStartsOut;
     61  bool  outputAllSolid;
     62  float outputFraction;
     63 
    5164  bool * alreadyVisible;
    52   bool isAlreadyVisible(int Face);
    53   void addFace(int Face);
    54   int lastTex;
    55 
    56 
    5765  // Deques to store the visible faces
    5866  ::std::deque<int> trasparent; //!< the ones with transparancy go here
Note: See TracChangeset for help on using the changeset viewer.