repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 7190e1565072f4daf3093c5fdd7ff67a9335b4f2:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 7190e1565072f4daf3093c5fdd7ff67a9335b4f2
Author: James Baicoianu 
Date:   Sat Oct 21 03:25:52 2017 -0700

    particle_vel / vel cleanup

diff --git a/scripts/janusparticle.js b/scripts/janusparticle.js
index 920068674ba5ac171c06ee868b3cf0634161ce2a..
index ..12523214946009c5f898a718574ca1b186096205 100644
--- a/scripts/janusparticle.js
+++ b/scripts/janusparticle.js
@@ -112,6 +112,7 @@ elation.require(['janusweb.janusbase'], function() {
     }
     this.createForces = function() {
       elation.engine.things.janusparticle.extendclass.createForces.call(this);
+      this.properties.particle_vel.copy(this.properties.velocity);
       this.properties.velocity.set(0,0,0); // FIXME - hack to override "vel" property mapping
     }
     this.createParticles = function() {
@@ -361,6 +362,7 @@ elation.require(['janusweb.janusbase'], function() {
         rand_vel:  [ 'property', 'rand_vel'],
         rand_accel:  [ 'property', 'rand_accel'],
         rand_col:  [ 'property', 'rand_col'],
+        particle_vel:  [ 'property', 'particle_vel'],
         emitter_id:  [ 'property', 'emitter_id'],
         emitter_scale:  [ 'property', 'emitter_scale'],
         emitter_pos:  [ 'property', 'emitter_pos'],

-----END OF PAGE-----