Ignore:
Timestamp:
2015-02-09T09:51:09+13:00 (9 years ago)
Author:
bmt11
Message:

Added Tooltip for slider need to rework so that it doesnt overlay

File:
1 edited

Legend:

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

    r29694 r29719  
    3939            // create a velocity vector
    4040            this.particle.velocity = new THREE.Vector3(
    41                 (windForce.x * this.MASS), // x
     41                (windForce.x * (1-this.MASS)), // x
    4242                -Math.random() * 0.01, // y
    43                 (windForce.z * this.MASS)); // z
     43                (windForce.z * (1-this.MASS))); // z
    4444
    4545            // add it to the geometry
     
    7676                this.particle.x = (Math.random() * 10000) - 5000;
    7777                this.particle.z = (Math.random() * 10000) - 5000;
    78 
    7978            }
    8079           
    8180            // update the velocity
    8281            this.particle.velocity.y -= Math.random() * 0.01;
     82            this.particle.velocity.x = windForce.x * (1-this.MASS);
     83            this.particle.velocity.z = windForce.z * (1-this.MASS)
    8384           
    8485            // and the position
Note: See TracChangeset for help on using the changeset viewer.