mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #1507 from RoundedIcon/PlayerScalingFix
Works nicely.
This commit is contained in:
commit
eebb1852f0
1 changed files with 3 additions and 3 deletions
|
|
@ -4659,9 +4659,9 @@ Point3F Player::_move( const F32 travelTime, Collision *outCol )
|
||||||
}
|
}
|
||||||
Point3F distance = end - start;
|
Point3F distance = end - start;
|
||||||
|
|
||||||
if (mFabs(distance.x) < mObjBox.len_x() &&
|
if (mFabs(distance.x) < mScaledBox.len_x() &&
|
||||||
mFabs(distance.y) < mObjBox.len_y() &&
|
mFabs(distance.y) < mScaledBox.len_y() &&
|
||||||
mFabs(distance.z) < mObjBox.len_z())
|
mFabs(distance.z) < mScaledBox.len_z())
|
||||||
{
|
{
|
||||||
// We can potentially early out of this. If there are no polys in the clipped polylist at our
|
// We can potentially early out of this. If there are no polys in the clipped polylist at our
|
||||||
// end position, then we can bail, and just set start = end;
|
// end position, then we can bail, and just set start = end;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue