Explorar o código

Emitter particle random is now seeded

Clement Espeute %!s(int64=2) %!d(string=hai) anos
pai
achega
54f3dd55e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,