Browse Source

Emitter: flip screen aligment axis

trethaller 6 years ago
parent
commit
b3d0f466ca
1 changed files with 4 additions and 2 deletions
  1. 4 2
      hide/prefab/fx/Emitter.hx

+ 4 - 2
hide/prefab/fx/Emitter.hx

@@ -147,8 +147,10 @@ private class ParticleInstance extends h3d.scene.Object {
 						case Local:mat.multiply3x4(mat, emitter.invTransform);
 						case World:
 					}
-					getRotationQuat().initRotateMatrix(mat);
-					getRotationQuat().normalize();
+					mat.prependRotation(0, Math.PI, 0);
+					var q = getRotationQuat();
+					q.initRotateMatrix(mat);
+					q.normalize();
 					posChanged = true;
 				}
 				case Axis: {