mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Fix for Issue #136 for Zoning Bug
This commit is contained in:
parent
e2f0404a05
commit
cfb90f37e4
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[ 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() );
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue