Project

General

Profile

« Previous | Next » 

Revision 7fe64077

Added by Leszek Koltunski over 2 years ago

Small things.

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
    mCameraDist = 0.5f / ((float)Math.tan(halfFOV));
80

  
78
    mCameraDist = (0.5f*mHeight) / ((float)Math.tan(halfFOV)*mWidth);
81 79
    setProjection( fov, 0.1f);
82 80
    }
83 81

  

Also available in: Unified diff