浏览代码

Fixed Cloth.js. See #11130

Mr.doob 8 年之前
父节点
当前提交
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;