Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

merged back from old branch.

File:
1 edited

Legend:

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

    r8186 r8195  
    5252  // Functions
    5353  const void draw();
     54  const void tick(float time);
    5455  void draw_debug_face(int Face);
    5556  void draw_face(int Face);
     
    5758 
    5859
    59   void checkCollision(WorldEntity* worldEntity);
     60  void checkCollision(WorldEntity* worldEntity); /*!< WorldEntities use this function to check wheter they collided with the BSPEntity.
     61                                                      If a collision has been detected, the collides-function of worldEntity will be called.*/
    6062
    6163private:
    6264  // Functions
    6365  BspTreeNode* getLeaf(BspTreeNode*  node,   Vector* cam) ;  //!< Traverses the tree
    64   void  checkCollision(BspTreeNode* node, Vector* cam);
     66  void  checkCollision(BspTreeNode* node, Vector* cam); //!< Obsolete. Use this function for debugging only!
    6567  void  checkCollisionRay(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end);
    66   void  checkCollisionRayN(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end);
     68  void  checkCollisionRayN(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end);
     69  void TraceBox( Vector& inputStart, Vector& inputEnd,Vector& inputMins, Vector& inputMaxs );
     70  void  checkCollisionBox(void);
    6771  void  checkBrushRay(brush* curBrush);
    6872  void  checkBrushRayN(brush* curBrush);
     
    8084  int lastTex;
    8185 
    82   //obsolete
     86  //obsolete: global variables for collision detection
    8387  bool  outputStartsOut;
    8488  bool  outputAllSolid;
    8589  float outputFraction;
     90  Vector traceMins; //!< Mins of current bbox
     91  Vector traceMaxs; //!< Maxs of current bbox
     92  Vector traceExtents; /*!< Stores the maximum of the absolute value of each axis in the box.
     93                            For example, if traceMins was (-100,-3,-15) and traceMaxs was (55,22,7), traceExtents */
    8694 
     95 
    8796  bool * alreadyVisible;
    8897  // Deques to store the visible faces
     
    9099  ::std::deque<int> opal; //!< the others here.
    91100
    92   Vector out;
    93   Vector out1;
    94   Vector out2;
     101  Vector out;  //!< For debugging only
     102  Vector out1; //!< For debugging only
     103  Vector out2; //!< For debugging only
    95104};
    96105
Note: See TracChangeset for help on using the changeset viewer.