Ignore:
Timestamp:
2015-02-09T12:11:28+13:00 (9 years ago)
Author:
bmt11
Message:

Tooltip is now polished and finished

File:
1 edited

Legend:

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

    r29719 r29721  
    33   
    44    this.isInit = false;
    5     this.MASS = 0.01;
     5    this.MASS = 0.9;
    66   
    77    this.init = function() {
     
    1414   
    1515        // create the particle variables
    16         this.particleCount = 10000,
     16        this.particleCount = 8000,
    1717        this.particles = new THREE.Geometry(),
    1818        this.pMaterial = new THREE.ParticleBasicMaterial({
     
    3939            // create a velocity vector
    4040            this.particle.velocity = new THREE.Vector3(
    41                 (windForce.x * (1-this.MASS)), // x
    42                 -Math.random() * 0.01, // y
    43                 (windForce.z * (1-this.MASS))); // z
     41                (windForce.x * this.MASS),  // x
     42                -Math.random() * this.MASS, // y
     43                (windForce.z * this.MASS)   // z
     44            );
    4445
    4546            // add it to the geometry
Note: See TracChangeset for help on using the changeset viewer.