brangerbriz / liBB.js

A JavaScript library/framework for creating interactive && generative apps + installations in/out of the browser
http://libb.brangerbriz.com/
GNU General Public License v3.0
1 stars 2 forks source link

BB.Particle2D: friction issue #14

Open nbriz opened 8 years ago

nbriz commented 8 years ago

for some reason this isn't working ( from the Particle2D.update() ):

this.acceleration.multiplyScalar(this.friction); 

but this is:

this.velocity.multiplyScalar(this.friction); 

so i'm just doing that for now ( tbh, still a little confused about the purpose of acceleration here? instead of just doing all the math directly on velocity each frame )