Changeset 10645 in orxonox.OLD for branches/vs-enhencements/src/util/track
- Timestamp:
- May 2, 2007, 11:48:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/util/track/action_box.cc
r10642 r10645 127 127 bool ActionBox::isPointInBox( const Vector & pos ) 128 128 { 129 bool result = true; 129 bool result = true; //TODO remove 130 130 for ( int i = 0; i<6; i++ ) 131 131 { 132 132 if ( planes[i].distancePoint( pos ) < 0 ) 133 133 { 134 result = false; 134 result = false; // TODO return false; 135 135 printf("PLANE %i FAILED %f\n", i, planes[i].distancePoint( pos ) ); 136 136 } 137 137 } 138 139 return result; 138 return result; //TODO return true; 140 139 } 141 140 … … 146 145 { 147 146 Vector p[7]; 148 147 149 148 p[0] = Vector( 0.0, height_2, -width_2 ); 150 149 p[1] = Vector( 0.0, height_2, width_2 ); … … 154 153 p[5] = Vector( depth, -height_2, width_2 ); 155 154 p[6] = Vector( depth, -height_2, -width_2 ); 156 155 157 156 for ( int i = 0; i<7; i++ ) 158 157 { … … 160 159 p[i] += track->getTrackNode()->getAbsCoor(); 161 160 } 162 161 163 162 planes[0] = Plane( p[1], p[0], p[2] ); 164 163 planes[1] = Plane( p[3], p[4], p[5] );
Note: See TracChangeset
for help on using the changeset viewer.