Changeset 6909 in orxonox.OLD for branches/current_cd/src/world_entities/world_entity.cc
- Timestamp:
- Jan 31, 2006, 6:02:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/world_entities/world_entity.cc
r6815 r6909 206 206 bool WorldEntity::buildObbTree(unsigned int depth) 207 207 { 208 <<<<<<< .working 208 209 if (this->obbTree) 209 210 delete this->obbTree; … … 211 212 if (this->models[0] != NULL) 212 213 { 214 ======= 215 if( this->model != NULL) { 216 >>>>>>> .merge-right.r6905 213 217 PRINTF(4)("creating obb tree\n"); 218 <<<<<<< .working 214 219 215 220 216 221 this->obbTree = new OBBTree(depth, (sVec3D*)this->models[0]->getVertexArray(), this->models[0]->getVertexCount()); 222 ======= 223 //this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 224 this->obbTree = new OBBTree(depth, *model->getModelInfo()); 225 >>>>>>> .merge-right.r6905 217 226 return true; 218 227 } 219 228 else 220 229 { 221 PRINTF( 2)("could not create obb-tree, because no model was loaded yet\n");230 PRINTF(1)("could not create obb-tree, because no model was loaded yet\n"); 222 231 this->obbTree = NULL; 223 232 return false; … … 257 266 * Implement behaviour like damage application or other miscellaneous collision stuff in this function 258 267 */ 259 void WorldEntity::collidesWith( WorldEntity* entity, const Vector& location)268 void WorldEntity::collidesWith(const WorldEntity& entity, const Vector& location) const 260 269 { 261 270 /**
Note: See TracChangeset
for help on using the changeset viewer.