Changeset 9172 in orxonox.OLD for branches/presentation/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jul 4, 2006, 9:45:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/collision_detection/obb_tree_node.cc
r9008 r9172 90 90 delete this->bvElement; 91 91 } 92 93 94 95 void OBBTreeNode::createBox(Vector start, Vector end) 96 { 97 98 this->bvElement = new OBB(); 99 this->nodeLeft = NULL; 100 this->nodeRight = NULL; 101 102 this->bvElement->center = (end - start) * 0.5f; 103 this->bvElement->halfLength[0] = (end.x - start.x) * 0.5f; 104 this->bvElement->halfLength[1] = (end.y - start.y) * 0.5f; 105 this->bvElement->halfLength[2] = (end.z - start.z) * 0.5f; 106 } 107 92 108 93 109 … … 682 698 if( depth == 0/*!(drawMode & DRAW_SINGLE && depth != 0)*/) 683 699 { 684 if( 1/*drawMode & DRAW_POINTS*/)700 if( 0 /*drawMode & DRAW_POINTS*/) 685 701 { 686 702 glBegin(GL_POINTS);
Note: See TracChangeset
for help on using the changeset viewer.