- Timestamp:
- 07/02/07 20:26:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderable.cpp
r2475 r2495 135 135 boundingBox = parentEntity->getWorldBoundingBox(true); 136 136 137 Vector3 center = (boundingBox.getMaximum() + boundingBox.getM aximum()) / 2.0;137 Vector3 center = (boundingBox.getMaximum() + boundingBox.getMinimum()) / 2.0; 138 138 float radius = (center - boundingBox.getMaximum()).length(); 139 139 boundingSphere.setRadius(radius); 140 140 boundingSphere.setCenter(center); 141 //boundingSphere = parentEntity->getWorldBoundingSphere(true);141 // boundingSphere = parentEntity->getWorldBoundingSphere(true); 142 142 break; 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.