Changeset 4702 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jun 26, 2005, 1:37:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4701 r4702 694 694 } 695 695 696 return true; 697 } 698 699 700 701 void OBBTreeNode::drawBV(int depth, int drawMode) const 696 boxA->bCollided = true; /* use this ONLY!!!! for drawing operations */ 697 boxB->bCollided = true; 698 return true; 699 } 700 701 702 703 void OBBTreeNode::drawBV(int depth, int drawMode) 702 704 { 703 705 this->obbTree->getMaterial(treeIndex)->select(); … … 774 776 float* len = this->bvElement->halfLength; 775 777 776 if( drawMode & DRAW_BV_BLENDED) 778 if( this->bvElement->bCollided) 779 this->obbTree->getCollisionMaterial()->select(); 780 else if( drawMode & DRAW_BV_BLENDED) 777 781 this->obbTree->getTransparentMaterial(treeIndex)->select(); 782 783 778 784 779 785 /* draw bounding box */ … … 918 924 } 919 925 926 927 920 928 if( this->nodeLeft != NULL && depth != 0 ) 921 929 this->nodeLeft->drawBV(depth - 1, drawMode); … … 923 931 this->nodeRight->drawBV(depth - 1, drawMode); 924 932 933 this->bvElement->bCollided = false; 925 934 } 926 935
Note: See TracChangeset
for help on using the changeset viewer.