Explorar el Código

Fix box init rotation

trethaller hace 7 años
padre
commit
cc7f1ead84
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hide/prefab/fx/Emitter.hx

+ 1 - 1
hide/prefab/fx/Emitter.hx

@@ -241,7 +241,7 @@ class EmitterObject extends h3d.scene.Object {
 					tmpq.initRotation(0, -hxd.Math.atan2(dy, dx), Math.PI/2);
 				case Box:
 					offset.set(random.srand(0.5), random.srand(0.5), random.srand(0.5));
-					tmpq.initRotation(1, 0, 0);
+					tmpq.identity();
 				case Sphere:
 					do {
 						offset.x = random.srand(1.0);