Ignore:
Timestamp:
07/02/07 20:26:26 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderable.cpp

    r2475 r2495  
    135135                 boundingBox = parentEntity->getWorldBoundingBox(true); 
    136136                  
    137                  Vector3 center = (boundingBox.getMaximum() + boundingBox.getMaximum()) / 2.0; 
     137                 Vector3 center = (boundingBox.getMaximum() + boundingBox.getMinimum()) / 2.0; 
    138138                 float radius = (center - boundingBox.getMaximum()).length(); 
    139139                 boundingSphere.setRadius(radius); 
    140140                 boundingSphere.setCenter(center); 
    141                  //boundingSphere = parentEntity->getWorldBoundingSphere(true);  
     141                // boundingSphere = parentEntity->getWorldBoundingSphere(true);  
    142142                 break; 
    143143         } 
Note: See TracChangeset for help on using the changeset viewer.