浏览代码

fixed rotInit

ncannasse 8 年之前
父节点
当前提交
3a24724306
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/Particles.hx

+ 1 - 1
h2d/Particles.hx

@@ -84,7 +84,7 @@ private class Particle extends h2d.SpriteBatch.BatchElement {
 		life += et;
 
 		if( group.rotAuto )
-			rotation = Math.atan2(vy, vx) + life * vr + group.rotInit;
+			rotation = Math.atan2(vy, vx) + life * vr + group.rotInit * Math.PI;
 		else
 			rotation += vr * et;
 		scale = scaleX * Math.pow(1 + vs, et);