Jelajahi Sumber

Emitter particle random is now seeded

Clement Espeute 2 tahun lalu
induk
melakukan
54f3dd55e8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      hrt/prefab/fx/Emitter.hx

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

@@ -211,7 +211,7 @@ private class ParticleInstance  {
 		startFrame = 0;
 		speedAccumulation.set(0,0,0);
 		orientation.identity();
-		random = hxd.Math.random();
+		random = emitter.random.rand();
 
 		switch(emitter.simulationSpace){
 			// Particles in Local are spawned next to emitter in the scene tree,