Explorar o código

Fixed Cloth.js. See #11130

Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
c732e5da34
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      examples/js/Cloth.js

+ 1 - 0
examples/js/Cloth.js

@@ -90,6 +90,7 @@ Particle.prototype.integrate = function( timesq ) {
 	newPos.multiplyScalar( DRAG ).add( this.position );
 	newPos.add( this.a.multiplyScalar( timesq ) );
 
+	this.tmp = this.previous;
 	this.previous = this.position;
 	this.position = newPos;