mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Merge pull request #137 from DavidWyand-GG/issue136-ZoningBug
Fix for Issue #136 for Zoning Bug
This commit is contained in:
commit
1af290bd3b
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ void OrientedBox3F::set( const MatrixF& transform, const Point3F& extents )
|
||||||
mAxes[ ForwardVector ] = transform.getForwardVector();
|
mAxes[ ForwardVector ] = transform.getForwardVector();
|
||||||
mAxes[ UpVector ] = transform.getUpVector();
|
mAxes[ UpVector ] = transform.getUpVector();
|
||||||
|
|
||||||
mHalfExtents = extents;
|
mHalfExtents = extents * 0.5f;
|
||||||
|
|
||||||
_initPoints();
|
_initPoints();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ void ScenePolyhedralZone::_updateOrientedWorldBox()
|
||||||
if( mIsBox )
|
if( mIsBox )
|
||||||
Parent::_updateOrientedWorldBox();
|
Parent::_updateOrientedWorldBox();
|
||||||
else
|
else
|
||||||
mOrientedWorldBox.set( getTransform(), Point3F( mObjBox.len_x(), mObjBox.len_y(), mObjBox.len_z() ) );
|
mOrientedWorldBox.set( getTransform(), mObjBox.getExtents() * getScale() );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue