Ignore:
Timestamp:
2014-12-08T13:25:38+13:00 (9 years ago)
Author:
bmt11
Message:

Added updating of textures so when the flag is changed the updated version will display. Also started implementing some nice CSS buttons for weather control and wind control to come soon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/render-3d/Flag_files/Flag.js

    r29475 r29547  
    341341    ballPosition.x = Math.cos(Date.now()/200) * 70
    342342
    343     if (sphere.visible)
    344     for (particles = cloth.particles, i=0, il = particles.length
    345             ;i<il;i++) {
    346         particle = particles[i];
    347         pos = particle.position;
    348         diff.subVectors(pos, ballPosition);
    349         if (diff.length() < ballSize) {
    350             // collided
    351             diff.normalize().multiplyScalar(ballSize);
    352             pos.copy(ballPosition).add(diff);
    353         }
    354     }
    355 
    356343    // Pin Constrains
    357344    if(Boolean(pinning)){
Note: See TracChangeset for help on using the changeset viewer.