Ignore:
Timestamp:
05/16/05 21:44:35 (20 years ago)
Author:
mattausch
Message:

corrected error when calculating distance for octree nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreOctreeHierarchyInterface.cpp

    r94 r101  
    6363{ 
    6464        AxisAlignedBox *box = &static_cast<Octree *>(node)->mBox; 
    65         Vector3 mid = ((box->getMinimum() - box->getMaximum()) * 0.5) + box->getMinimum(); 
     65        Vector3 mid = ((box->getMaximum() - box->getMinimum()) * 0.5) + box->getMinimum(); 
    6666 
    6767        return (mCullCamera->getDerivedPosition() - mid).squaredLength(); 
Note: See TracChangeset for help on using the changeset viewer.