Mr.doob 9 лет назад
Родитель
Сommit
c732e5da34
1 измененных файлов с 1 добавлено и 0 удалено
  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;
 

粤ICP备19079148号