Project

General

Profile

« Previous | Next » 

Revision 3d093961

Added by Leszek Koltunski over 2 years ago

Fix the solver (after rearranging the faces of the cuboids)

View differences:

src/main/java/org/distorted/objectlib/main/TwistyObjectNode.java
75 75
  public void setFOV(float fov)
76 76
    {
77 77
    double halfFOV = fov * (Math.PI/360);
78
 //   mCameraDist = (0.5f*mHeight) / ((float)Math.tan(halfFOV)*mWidth);
79

  
80
 mCameraDist = (0.5f) / ((float)Math.tan(halfFOV));
78
    //   mCameraDist = (0.5f*mHeight) / ((float)Math.tan(halfFOV)*mWidth);
79
    mCameraDist = 0.5f / ((float)Math.tan(halfFOV));
81 80

  
82 81
    setProjection( fov, 0.1f);
83 82
    }

Also available in: Unified diff