Fix for Issue #136 for Zoning Bug

This commit is contained in:
DavidWyand-GG 2012-11-08 18:19:33 -05:00
parent e2f0404a05
commit cfb90f37e4
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ void OrientedBox3F::set( const MatrixF& transform, const Point3F& extents )
mAxes[ ForwardVector ] = transform.getForwardVector();
mAxes[ UpVector ] = transform.getUpVector();
mHalfExtents = extents;
mHalfExtents = extents * 0.5f;
_initPoints();
}

View file

@ -73,7 +73,7 @@ void ScenePolyhedralZone::_updateOrientedWorldBox()
if( mIsBox )
Parent::_updateOrientedWorldBox();
else
mOrientedWorldBox.set( getTransform(), Point3F( mObjBox.len_x(), mObjBox.len_y(), mObjBox.len_z() ) );
mOrientedWorldBox.set( getTransform(), mObjBox.getExtents() * getScale() );
}
//-----------------------------------------------------------------------------