Changeset 6911 in orxonox.OLD for branches/current_cd/src/world_entities/world_entity.cc
- Timestamp:
- Jan 31, 2006, 7:12:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/world_entities/world_entity.cc
r6909 r6911 204 204 * @param depth the depth to calculate 205 205 */ 206 bool WorldEntity::buildObbTree(unsigned int depth) 207 { 208 <<<<<<< .working 206 bool WorldEntity::buildObbTree(int depth) 207 { 209 208 if (this->obbTree) 210 209 delete this->obbTree; … … 212 211 if (this->models[0] != NULL) 213 212 { 214 ======= 215 if( this->model != NULL) { 216 >>>>>>> .merge-right.r6905 217 PRINTF(4)("creating obb tree\n"); 218 <<<<<<< .working 219 220 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 213 this->obbTree = new OBBTree(depth, models[0]->getModelInfo()); 226 214 return true; 227 215 } … … 266 254 * Implement behaviour like damage application or other miscellaneous collision stuff in this function 267 255 */ 268 void WorldEntity::collidesWith( const WorldEntity& entity, const Vector& location) const256 void WorldEntity::collidesWith(WorldEntity* entity, const Vector& location) 269 257 { 270 258 /**
Note: See TracChangeset
for help on using the changeset viewer.