Changeset 8195 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
- Timestamp:
- Jun 7, 2006, 3:14:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
r8186 r8195 52 52 // Functions 53 53 const void draw(); 54 const void tick(float time); 54 55 void draw_debug_face(int Face); 55 56 void draw_face(int Face); … … 57 58 58 59 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.*/ 60 62 61 63 private: 62 64 // Functions 63 65 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! 65 67 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); 67 71 void checkBrushRay(brush* curBrush); 68 72 void checkBrushRayN(brush* curBrush); … … 80 84 int lastTex; 81 85 82 //obsolete 86 //obsolete: global variables for collision detection 83 87 bool outputStartsOut; 84 88 bool outputAllSolid; 85 89 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 */ 86 94 95 87 96 bool * alreadyVisible; 88 97 // Deques to store the visible faces … … 90 99 ::std::deque<int> opal; //!< the others here. 91 100 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 95 104 }; 96 105
Note: See TracChangeset
for help on using the changeset viewer.