瀏覽代碼

Merge pull request #1 from GarageGames/development

development updates
Anis 9 年之前
父節點
當前提交
7b8df19a33
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      Engine/source/T3D/player.cpp
  2. 1 1
      Engine/source/ts/tsShapeInstance.cpp

+ 3 - 3
Engine/source/T3D/player.cpp

@@ -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() &&
-          mFabs(distance.y) < mObjBox.len_y() &&
-          mFabs(distance.z) < mObjBox.len_z())
+      if (mFabs(distance.x) < mScaledBox.len_x() &&
+          mFabs(distance.y) < mScaledBox.len_y() &&
+          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;

+ 1 - 1
Engine/source/ts/tsShapeInstance.cpp

@@ -593,7 +593,7 @@ S32 TSShapeInstance::setDetailFromDistance( const SceneRenderState *state, F32 s
    // 4:3 aspect ratio, we've changed the reference value
    // 4:3 aspect ratio, we've changed the reference value
    // to 300 to be more compatible with legacy shapes.
    // to 300 to be more compatible with legacy shapes.
    //
    //
-   const F32 pixelScale = state->getViewport().extent.y / 300.0f;
+   const F32 pixelScale = (state->getViewport().extent.x / state->getViewport().extent.y);
 
 
    // This is legacy DTS support for older "multires" based
    // This is legacy DTS support for older "multires" based
    // meshes.  The original crossbow weapon uses this.
    // meshes.  The original crossbow weapon uses this.