Project

General

Profile

« Previous | Next » 

Revision 12ecac18

Added by Leszek Koltunski almost 5 years ago

Add the 'convexity' param to Dynamics and the Dynamic app.

View differences:

src/main/java/org/distorted/library/type/Dynamic2D.java
59 59
      
60 60
      if( q>1 )
61 61
        {
62
        tmp1.tangent[0] = nx+px/q;
63
        tmp1.tangent[1] = ny+py/q;
62
        tmp1.tangent[0] = mConvexity*(nx+px/q);
63
        tmp1.tangent[1] = mConvexity*(ny+py/q);
64 64
        }
65 65
      else
66 66
        {
67
        tmp1.tangent[0] = px+nx*q;
68
        tmp1.tangent[1] = py+ny*q;
67
        tmp1.tangent[0] = mConvexity*(px+nx*q);
68
        tmp1.tangent[1] = mConvexity*(py+ny*q);
69 69
        }
70 70
      }
71 71
    else

Also available in: Unified diff