Commit cfb90f37 authored by DavidWyand-GG's avatar DavidWyand-GG

Fix for Issue #136 for Zoning Bug

parent e2f0404a
......@@ -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();
}
......
......@@ -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() );
}
//-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment