Project

General

Profile

« Previous | Next » 

Revision 334c13fa

Added by Leszek Koltunski over 7 years ago

Make the effect Center be always 3D.

View differences:

src/main/java/org/distorted/examples/flag/FlagRenderer.java
85 85
      mQuatInt1.add(mQuat1);
86 86
      mQuatInt2.add(mQuat2);
87 87

  
88
      Static2D waveCenter = new Static2D(mObjWidth, mObjHeight/2);  // middle of the right edge
88
      Static3D waveCenter = new Static3D(mObjWidth, mObjHeight/2, 0);  // middle of the right edge
89 89
      Static4D waveRegion = new Static4D(0,0,mObjWidth,mObjWidth);
90 90

  
91 91
      mObject.wave(mWaveDyn, waveCenter, waveRegion);

Also available in: Unified diff