Explorar o código

fixed rotInit

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
3a24724306
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);